SqlGeography.STPolyFromWKB(SqlBytes, Int32) Method

Definition

Returns a SqlGeography Polygon 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.SqlGeography STPolyFromWKB (System.Data.SqlTypes.SqlBytes wkbPolygon, int srid);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=true)>]
static member STPolyFromWKB : System.Data.SqlTypes.SqlBytes * int -> Microsoft.SqlServer.Types.SqlGeography
Public Shared Function STPolyFromWKB (wkbPolygon As SqlBytes, srid As Integer) As SqlGeography

Parameters

wkbPolygon
SqlBytes

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

srid
Int32

An int expression that represents the Spatial Reference ID (SRID) of the SqlGeographyPolygon instance you wish to return.

Returns

A SqlGeography instance constructed from the specified WKB representation.

Attributes

Applies to