SqlGeometry.STGeomFromWKB(SqlBytes, Int32) Method

Definition

Returns a SqlGeometry instance from an Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation.

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

Parameters

wkbGeometry
SqlBytes

The WKB representation of the SqlGeometry instance you wish to return.

srid
Int32

An int expression that represents the spatial reference ID (SRID) of the SqlGeometry instance you wish to return.

Returns

SqlGeometry

A SqlGeometry object constructed from the specified WKB representation.

Attributes

Applies to