Share via


SqlGeometry.GeomFromGml(SqlXml, Int32) Method

Definition

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

Applies to