SqlGeography.GeomFromGml(SqlXml, Int32) Method

Definition

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

Applies to