SqlGeography.STGeomCollFromWKB 方法 (SqlBytes, Int32)
从开放地理空间联盟 (OGC) 熟知二进制 (WKB) 表示形式返回 GeometryCollection 实例。
命名空间: Microsoft.SqlServer.Types
程序集: Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)
语法
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public static SqlGeography STGeomCollFromWKB(
SqlBytes wkbGeometryCollection,
int srid
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
static SqlGeography^ STGeomCollFromWKB(
SqlBytes^ wkbGeometryCollection,
int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
static member STGeomCollFromWKB :
wkbGeometryCollection:SqlBytes *
srid:int -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Shared Function STGeomCollFromWKB (
wkbGeometryCollection As SqlBytes,
srid As Integer
) As SqlGeography
参数
wkbGeometryCollection
Type: System.Data.SqlTypes.SqlBytes要返回的 GeometryCollection 实例的 WKB 表示形式。
srid
Type: System.Int32int 表达式,它表示的空间引用 ID (SRID) 的 GeometryCollection 你想要返回的实例。
返回值
Type: Microsoft.SqlServer.Types.SqlGeography
一个从指定的 WKB 几何图形集合构造的 SqlGeography 值。
备注
OGC 类型 SqlGeography 返回实例 STGeomCollFromWKB 设置为 GeometryCollection、 MultiPolygon、 MultiLineString、 或 MultiPoint,具体取决于相应的 WKB 输入。
如果输入格式不正确,则此方法将引发 FormatException 异常。
另请参阅
SqlGeography 类
Microsoft.SqlServer.Types 命名空间
返回页首