SqlSpatialFunctions.PointGeometry Method

Definition

Constructs a geometry instance representing a Point instance from its x and y values and a spatial reference 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

Parameters

xCoordinate
Nullable<Double>

The x-coordinate of the Point being generated.

yCoordinate
Nullable<Double>

The y-coordinate of the Point being generated.

spatialReferenceId
Nullable<Int32>

The SRID of the geography instance.

Returns

The constructed geometry instance.

Attributes

Applies to