SqlGeography.GeomFromGml 方法 (SqlXml, Int32)
根据地理标记语言 (GML) 的 SQL Server 子集中的给定表示形式构造 SqlGeography 实例。
命名空间: Microsoft.SqlServer.Types
程序集: Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)
语法
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeography GeomFromGml(
SqlXml xml,
int srid
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
static SqlGeography^ GeomFromGml(
SqlXml^ xml,
int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member GeomFromGml :
xml:SqlXml *
srid:int -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Shared Function GeomFromGml (
xml As SqlXml,
srid As Integer
) As SqlGeography
参数
xml
Type: System.Data.SqlTypes.SqlXmlXML 输入,GML 将从中返回一个值。
srid
Type: System.Int32int 您希望返回表达式,它表示空间引用 ID (SRID) 的地域实例。
返回值
Type: Microsoft.SqlServer.Types.SqlGeography
从指定的 GML 中构造的 SqlGeography 值。
备注
如果输入格式不正确,则此方法将引发 FormatException。
另请参阅
SqlGeography 类
Microsoft.SqlServer.Types 命名空间
返回页首