Udostępnij przez


SqlSpatialFunctions.PointGeometry Metoda

Definicja

Tworzy wystąpienie geometryczne reprezentujące wystąpienie punktu z jego wartości x i y oraz identyfikator odwołania przestrzennego (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

Parametry

xCoordinate
Nullable<Double>

Współrzędna x generowanego punktu.

yCoordinate
Nullable<Double>

Współrzędna y generowanego punktu

spatialReferenceId
Nullable<Int32>

Identyfikator SRID wystąpienia geograficznego.

Zwraca

Skonstruowane wystąpienie geometrii.

Atrybuty

Dotyczy