SqlSpatialFunctions.PointGeography 方法

定义

构造一个表示从其的 x 和 y 的值及空间引用 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

参数

latitude
Nullable<Double>

正在生成的点的 x 坐标。

longitude
Nullable<Double>

正在生成的点的 y 坐标。

spatialReferenceId
Nullable<Int32>

地理实例的 SRID。

返回

构造的地理实例。

属性

适用于