SqlGeography.STPointFromWKB(SqlBytes, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a SqlGeography Point 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 STPointFromWKB (System.Data.SqlTypes.SqlBytes wkbPoint, int srid);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=true)>]
static member STPointFromWKB : System.Data.SqlTypes.SqlBytes * int -> Microsoft.SqlServer.Types.SqlGeography
Public Shared Function STPointFromWKB (wkbPoint As SqlBytes, srid As Integer) As SqlGeography
Parameters
- wkbPoint
- SqlBytes
The WKB representation of the SqlGeography Point instance you wish to return.
- srid
- Int32
An int expression that represents the Spatial Reference ID (SRID) of the SqlGeography Point instance you wish to return.
Returns
A SqlGeography value constructed from the specified WKB.
- Attributes