SqlGeography.Point(Double, Double, Int32) Method

Definition

Constructs a SqlGeography instance representing a Point instance from its x and y values and a spatial reference ID (SRID).

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

Parameters

latitude
Double

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

longitude
Double

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

srid
Int32

An int expression that represents the SRID of the geography instance you wish to return.

Returns

A SqlGeography instance constructed from the specified latitude, longitude, and SRID values.

Attributes

Applies to