Udostępnij za pośrednictwem


SqlSpatialFunctions.PointGeography Metoda

Definicja

Tworzy wystąpienie geograficzne reprezentujące wystąpienie punktu z wartości x i y oraz identyfikator odwołania przestrzennego (SRID).

[System.Data.Entity.DbFunction("SqlServer", "POINTGEOGRAPHY")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="latitude")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="spatialReferenceId")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="longitude")]
public static System.Data.Entity.Spatial.DbGeography PointGeography (Nullable<double> latitude, Nullable<double> longitude, Nullable<int> spatialReferenceId);
static member PointGeography : Nullable<double> * Nullable<double> * Nullable<int> -> System.Data.Entity.Spatial.DbGeography
Public Shared Function PointGeography (latitude As Nullable(Of Double), longitude As Nullable(Of Double), spatialReferenceId As Nullable(Of Integer)) As DbGeography

Parametry

latitude
Nullable<Double>

Współrzędna x generowanego punktu.

longitude
Nullable<Double>

Współrzędna y generowanego punktu

spatialReferenceId
Nullable<Int32>

Identyfikator SRID wystąpienia geograficznego.

Zwraca

Skonstruowane wystąpienie geografii.

Atrybuty

Dotyczy