SqlGeography.STPointFromText 方法 (SqlChars, Int32)
返回 SqlGeography 从开放地理空间联盟 (OGC) 熟知文本 (WKT) 表示形式,增加任何 Z (标高) 和 M (度量) 值的实例传递的实例。
命名空间: Microsoft.SqlServer.Types
程序集: Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)
语法
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeography STPointFromText(
SqlChars pointTaggedText,
int srid
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
static SqlGeography^ STPointFromText(
SqlChars^ pointTaggedText,
int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member STPointFromText :
pointTaggedText:SqlChars *
srid:int -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Shared Function STPointFromText (
pointTaggedText As SqlChars,
srid As Integer
) As SqlGeography
参数
pointTaggedText
Type: System.Data.SqlTypes.SqlChars您要返回的 SqlGeography Point 实例的 WKT 表示形式。
srid
Type: System.Int32int 表达式,它表示的空间引用 ID (SRID) SqlGeography 你想要返回的 Point 实例。
返回值
Type: Microsoft.SqlServer.Types.SqlGeography
一个从指定的 WKT 表示形式构造的 SqlGeography 值。
备注
此方法将引发 FormatException 如果输入格式不正确。
另请参阅
SqlGeography 类
Microsoft.SqlServer.Types 命名空间
返回页首