语言

SqlGeography.STMPolyFromText(SqlChars, Int32) 方法

定义

从开放地理空间联盟(OGC)Well-Known 文本(WKT)表示形式返回一个 SqlGeography 实例,该表示形式由实例携带的任何 Z(提升)和 M(度量值)扩充。

[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)]
public static Microsoft.SqlServer.Types.SqlGeography STMPolyFromText(System.Data.SqlTypes.SqlChars multiPolygonTaggedText, int srid);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)>]
static member STMPolyFromText : System.Data.SqlTypes.SqlChars * int -> Microsoft.SqlServer.Types.SqlGeography
Public Shared Function STMPolyFromText (multiPolygonTaggedText As SqlChars, srid As Integer) As SqlGeography

参数

multiPolygonTaggedText
SqlChars

要返回的 MultiPolygon 实例的 SqlGeographyWKT 表示形式。

srid
Int32

一个 int 表达式,表示要返回的 SqlGeographyMultiPolygon 实例的空间引用 ID (SRID)。

返回

SqlGeography从指定的 WKT 表示形式构造的值。

属性

适用于