SqlGeography.STLineFromWKB 方法 (SqlBytes, Int32)

 

返回 SqlGeography 从开放地理空间联盟 (OGC) 熟知文本 (WKT) 表示形式,增加任何 Z (标高) 和 M (度量) 值的实例传递的实例。

命名空间:   Microsoft.SqlServer.Types
程序集:  Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)

语法

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public static SqlGeography STLineFromWKB(
    SqlBytes wkbLineString,
    int srid
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
static SqlGeography^ STLineFromWKB(
    SqlBytes^ wkbLineString,
    int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
static member STLineFromWKB : 
        wkbLineString:SqlBytes *
        srid:int -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Shared Function STLineFromWKB (
    wkbLineString As SqlBytes,
    srid As Integer
) As SqlGeography

参数

  • srid
    Type: System.Int32

    一个 int 表达式,它表示您希望返回的 SqlGeography LineString 实例的空间引用 ID (SRID)。

返回值

Type: Microsoft.SqlServer.Types.SqlGeography

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

备注

如果输入的格式不正确,则此方法将引发 FormatException。

另请参阅

SqlGeography 类
Microsoft.SqlServer.Types 命名空间

返回页首