语言

SqlGeography.STGeomFromText(SqlChars, Int32) 方法

定义

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

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

参数

geometryTaggedText
SqlChars

要返回的 SqlGeography 实例的 WKT 表示形式。

srid
Int32

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

返回

SqlGeography从 WKY 表示形式构造的实例。

属性

适用于