SqlGeometry.STGeomCollFromWKB 方法 (SqlBytes, Int32)

 

从开放地理空间联盟 (OGC) 熟知二进制 (WKB) 表示形式返回 SqlGeometry 集合实例。

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

语法

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

参数

  • srid
    Type: System.Int32

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

返回值

Type: Microsoft.SqlServer.Types.SqlGeometry

一个从指定的 WKB 表示形式构造的 SqlGeometry 集合。

备注

OGC 类型 SqlGeometry 返回实例 STGeomCollFromWKB 设置为 GeomCollection、 MultiPolygon、 MultiLineString、 或 MulitPoint,具体取决于相应的 WKB 输入。

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

此成员是 static

另请参阅

SqlGeometry 类
Microsoft.SqlServer.Types 命名空间

返回页首