SqlGeometry.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 SqlGeometry 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.SqlGeometry 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.SqlGeometry
Public Shared Function GeomFromGml (xml As SqlXml, srid As Integer) As SqlGeometry
Parameters
- xml
- SqlXml
An XML input from which the GML will return a value.
- srid
- Int32
An int that represents the spatial reference ID (SRID) of the geometry instance you wish to return.
Returns
A SqlGeometry instance constructed from the specified GML.
- Attributes