SqlSpatialFunctions.PointGeography Method

Definition

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

public:
 static System::Data::Spatial::DbGeography ^ PointGeography(Nullable<double> latitude, Nullable<double> longitude, Nullable<int> spatialReferenceId);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "POINTGEOGRAPHY")]
public static System.Data.Spatial.DbGeography PointGeography (double? latitude, double? longitude, int? spatialReferenceId);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "POINTGEOGRAPHY")>]
static member PointGeography : Nullable<double> * Nullable<double> * Nullable<int> -> System.Data.Spatial.DbGeography
Public Shared Function PointGeography (latitude As Nullable(Of Double), longitude As Nullable(Of Double), spatialReferenceId As Nullable(Of Integer)) As DbGeography

Parameters

latitude
Nullable<Double>

The x-coordinate of the Point being generated.

longitude
Nullable<Double>

The y-coordinate of the Point being generated.

spatialReferenceId
Nullable<Int32>

The SRID of the geography instance.

Returns

The constructed geography instance.

Attributes

Applies to