SqlSpatialFunctions.PointGeometry 方法

定义

构造一个表示从其的 x 和 y 的值及空间引用 ID (SRID) 中的点实例的几何图形实例。

public:
 static System::Data::Spatial::DbGeometry ^ PointGeometry(Nullable<double> xCoordinate, Nullable<double> yCoordinate, Nullable<int> spatialReferenceId);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "POINTGEOMETRY")]
public static System.Data.Spatial.DbGeometry PointGeometry(double? xCoordinate, double? yCoordinate, int? spatialReferenceId);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "POINTGEOMETRY")>]
static member PointGeometry : Nullable<double> * Nullable<double> * Nullable<int> -> System.Data.Spatial.DbGeometry
Public Shared Function PointGeometry (xCoordinate As Nullable(Of Double), yCoordinate As Nullable(Of Double), spatialReferenceId As Nullable(Of Integer)) As DbGeometry

参数

xCoordinate
Nullable<Double>

正在生成的点的 x 坐标。

yCoordinate
Nullable<Double>

正在生成的点的 y 坐标。

spatialReferenceId
Nullable<Int32>

地理实例的 SRID。

返回

构造的几何图形实例。

属性

适用于