Freigeben über


SqlGeometry.Point(Double, Double, Int32) Method

Definition

Constructs a SqlGeometry instance that represents a Point instance from its X and Y values and an SRID.

[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)]
public static Microsoft.SqlServer.Types.SqlGeometry Point (double x, double y, int srid);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)>]
static member Point : double * double * int -> Microsoft.SqlServer.Types.SqlGeometry
Public Shared Function Point (x As Double, y As Double, srid As Integer) As SqlGeometry

Parameters

x
Double

A double that represents the X-coordinate of the Point being generated.

y
Double

A double that represents the Y-coordinate of the Point being generated.

srid
Int32

An int expression that represents the spatial reference ID (SRID) of the SqlGeometry instance you wish to return.

Returns

A SqlGeometry instance that represents a point on a Euclidian coordinate system.

Attributes

Applies to