Share via


SqlSpatialFunctions.PointGeometry Method

Definition

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

[System.Data.Entity.DbFunction("SqlServer", "POINTGEOMETRY")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="xCoordinate")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="yCoordinate")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification="Naming convention prescribed by OGC specification", MessageId="y")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="spatialReferenceId")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification="Naming convention prescribed by OGC specification", MessageId="x")]
public static System.Data.Entity.Spatial.DbGeometry PointGeometry(Nullable<double> xCoordinate, Nullable<double> yCoordinate, Nullable<int> spatialReferenceId);
static member PointGeometry : Nullable<double> * Nullable<double> * Nullable<int> -> System.Data.Entity.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