SqlGeography.GeomFromGml(SqlXml, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Constructs a SqlGeography instance given a representation in the SQL Server subset of the Geography Markup Language (GML).
[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)]
public static Microsoft.SqlServer.Types.SqlGeography GeomFromGml (System.Data.SqlTypes.SqlXml xml, int srid);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)>]
static member GeomFromGml : System.Data.SqlTypes.SqlXml * int -> Microsoft.SqlServer.Types.SqlGeography
Public Shared Function GeomFromGml (xml As SqlXml, srid As Integer) As SqlGeography
Parameters
- xml
- SqlXml
The XML input from which the GML will return a value.
- srid
- Int32
An int expression that represents the spatial reference ID (SRID) of the geography instance you wish to return.
Returns
A SqlGeography value constructed from the specified GML.
- Attributes