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 STGeomFromWKB ( _
wkbGeometry As SqlBytes, _
srid As Integer _
) As SqlGeometry
'使用
Dim wkbGeometry As SqlBytes
Dim srid As Integer
Dim returnValue As SqlGeometry
returnValue = SqlGeometry.STGeomFromWKB(wkbGeometry, _
srid)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public static SqlGeometry STGeomFromWKB(
SqlBytes wkbGeometry,
int srid
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public:
static SqlGeometry^ STGeomFromWKB(
SqlBytes^ wkbGeometry,
int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
static member STGeomFromWKB :
wkbGeometry:SqlBytes *
srid:int -> SqlGeometry
public static function STGeomFromWKB(
wkbGeometry : SqlBytes,
srid : int
) : SqlGeometry
パラメーター
- wkbGeometry
型: System.Data.SqlTypes.SqlBytes
返される SqlGeometry インスタンスの WKB 表現です。
- srid
型: System.Int32
返される SqlGeometry インスタンスの SRID (spatial reference ID) を表す int 式です。
戻り値
型: Microsoft.SqlServer.Types.SqlGeometry
指定した WKB 表現を基に構築された SqlGeometry オブジェクトです。
説明
STGeomFromText メソッドによって返された SqlGeometry インスタンスの OGC 型は、対応する WKB 入力に設定されます。
このメソッドは、入力が適切な形式でない場合に、FormatException をスローします。
このメンバーは static です。