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