次の方法で共有


SqlGeometry.STGeomCollFromWKB メソッド

Open Geospatial Consortium (OGC) の Well-Known Binary (WKB) 表現を基に SqlGeometry コレクション インスタンスを返します。

名前空間:  Microsoft.SqlServer.Types
アセンブリ:  Microsoft.SqlServer.Types (Microsoft.SqlServer.Types.dll)

構文

'宣言
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Shared Function STGeomCollFromWKB ( _
    wkbGeometryCollection As SqlBytes, _
    srid As Integer _
) As SqlGeometry
'使用
Dim wkbGeometryCollection As SqlBytes 
Dim srid As Integer 
Dim returnValue As SqlGeometry 

returnValue = SqlGeometry.STGeomCollFromWKB(wkbGeometryCollection, _
    srid)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public static SqlGeometry STGeomCollFromWKB(
    SqlBytes wkbGeometryCollection,
    int srid
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public:
static SqlGeometry^ STGeomCollFromWKB(
    SqlBytes^ wkbGeometryCollection, 
    int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
static member STGeomCollFromWKB : 
        wkbGeometryCollection:SqlBytes * 
        srid:int -> SqlGeometry
public static function STGeomCollFromWKB(
    wkbGeometryCollection : SqlBytes, 
    srid : int
) : SqlGeometry

パラメーター

  • srid
    型: System.Int32
    返される SqlGeometry インスタンスの SRID (spatial reference ID) を表す整数式です。

戻り値

型: Microsoft.SqlServer.Types.SqlGeometry
指定した WKB 表現を基に構築された SqlGeometry コレクションです。

説明

STGeomCollFromWKB によって返された SqlGeometry インスタンスの OGC 型は、対応する WKB 入力によって、GeomCollection、MultiPolygon、MultiLineString、および MulitPoint のいずれかに設定されます。

入力が適切な形式でない場合、このメソッドは FormatException 例外をスローします。

このメンバーは static です。

関連項目

参照

SqlGeometry クラス

Microsoft.SqlServer.Types 名前空間