Metodo SqlSpatialFunctions.PointGeometry
[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]
Costruisce un'istanza geometrica che rappresenta un'istanza di Point dai valori x e y un ID riferimento spaziale (SRID).
Spazio dei nomi: System.Data.Entity.SqlServer
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Sintassi
'Dichiarazione
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "spatialReferenceId")> _
<DbFunctionAttribute("SqlServer", "POINTGEOMETRY")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "x", _
Justification := "Naming convention prescribed by OGC specification")> _
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "xCoordinate")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "y", _
Justification := "Naming convention prescribed by OGC specification")> _
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "yCoordinate")> _
Public Shared Function PointGeometry ( _
xCoordinate As Nullable(Of Double), _
yCoordinate As Nullable(Of Double), _
spatialReferenceId As Nullable(Of Integer) _
) As DbGeometry
'Utilizzo
Dim xCoordinate As Nullable(Of Double)
Dim yCoordinate As Nullable(Of Double)
Dim spatialReferenceId As Nullable(Of Integer)
Dim returnValue As DbGeometry
returnValue = SqlSpatialFunctions.PointGeometry(xCoordinate, _
yCoordinate, spatialReferenceId)
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "spatialReferenceId")]
[DbFunctionAttribute("SqlServer", "POINTGEOMETRY")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "x",
Justification = "Naming convention prescribed by OGC specification")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "xCoordinate")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "y",
Justification = "Naming convention prescribed by OGC specification")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "yCoordinate")]
public static DbGeometry PointGeometry(
Nullable<double> xCoordinate,
Nullable<double> yCoordinate,
Nullable<int> spatialReferenceId
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"spatialReferenceId")]
[DbFunctionAttribute(L"SqlServer", L"POINTGEOMETRY")]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"x",
Justification = L"Naming convention prescribed by OGC specification")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"xCoordinate")]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"y",
Justification = L"Naming convention prescribed by OGC specification")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"yCoordinate")]
public:
static DbGeometry^ PointGeometry(
Nullable<double> xCoordinate,
Nullable<double> yCoordinate,
Nullable<int> spatialReferenceId
)
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "spatialReferenceId")>]
[<DbFunctionAttribute("SqlServer", "POINTGEOMETRY")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "x",
Justification = "Naming convention prescribed by OGC specification")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "xCoordinate")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "y",
Justification = "Naming convention prescribed by OGC specification")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "yCoordinate")>]
static member PointGeometry :
xCoordinate:Nullable<float> *
yCoordinate:Nullable<float> *
spatialReferenceId:Nullable<int> -> DbGeometry
public static function PointGeometry(
xCoordinate : Nullable<double>,
yCoordinate : Nullable<double>,
spatialReferenceId : Nullable<int>
) : DbGeometry
Parametri
- xCoordinate
Tipo: System.Nullable<Double>
Coordinata x del punto generato.
- yCoordinate
Tipo: System.Nullable<Double>
Coordinata y del punto generato
- spatialReferenceId
Tipo: System.Nullable<Int32>
SRID dell'istanza geografica.
Valore restituito
Tipo: System.Data.Entity.Spatial.DbGeometry
Istanza geometrica costruita.