Metoda GeomFromGml
Konstrukcje SqlGeometry wystąpienie podane reprezentacja podzbiór SQL Server z Geografia Markup Language (GML).
Przestrzeń nazw: Microsoft.SqlServer.Types
Zestaw: Microsoft.SqlServer.Types (w Microsoft.SqlServer.Types.dll)
Syntax
'Deklaracja
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Shared Function GeomFromGml ( _
xml As SqlXml, _
srid As Integer _
) As SqlGeometry
'Użycie
Dim xml As SqlXml
Dim srid As Integer
Dim returnValue As SqlGeometry
returnValue = SqlGeometry.GeomFromGml(xml, _
srid)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeometry GeomFromGml(
SqlXml xml,
int srid
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
static SqlGeometry^ GeomFromGml(
SqlXml^ xml,
int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member GeomFromGml :
xml:SqlXml *
srid:int -> SqlGeometry
public static function GeomFromGml(
xml : SqlXml,
srid : int
) : SqlGeometry
Parameters
- xml
Typ: System.Data.SqlTypes. . :: . .SqlXml
Dane wejściowe XML z którego GML zwróci wartość.
- srid
Typ: System. . :: . .Int32
Int przedstawiająca przestrzenne odwołanie Identyfikatora (SRID) geometria wystąpienie ma być zwrócona.
Wartość zwracana
Typ: Microsoft.SqlServer.Types. . :: . .SqlGeometry
A SqlGeometry wystąpienie zbudowane z określonego GML.
Uwagi
Ta metoda spowoduje zgłoszenie FormatException , jeśli dane wejściowe nie są prawidłowo sformatowanego.
To element członkowski jest statyczne.