Compartilhar via


SqlSpatialFunctions.PointGeometry Método

Definição

Constrói uma instância de geometria que representa uma instância de Ponto de seus valores x e y e um SRID (ID de referência espacial).

[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

Parâmetros

xCoordinate
Nullable<Double>

A coordenada X do Ponto que está sendo gerado.

yCoordinate
Nullable<Double>

A coordenada Y do Ponto que está sendo gerado

spatialReferenceId
Nullable<Int32>

O SRID da instância de geografia.

Retornos

A instância de geometria construída.

Atributos

Aplica-se a