语言

SqlGeography.STGeomFromWKB(SqlBytes, Int32) 方法

定义

从开放地理空间联盟(OGC)Well-Known 二进制(WKB)表示形式返回一个 SqlGeography 实例。

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

参数

wkbGeometry
SqlBytes

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

srid
Int32

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

返回

SqlGeography从指定的 WKB 表示形式构造的实例。

属性

适用于