Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SqlGeography.Parse Method

Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member Parse : 
        s:SqlString -> SqlGeography 

Parameters

s
Type: System.Data.SqlTypes.SqlString
The WKT representation of the SqlGeography instance you wish to return.

Return Value

Type: Microsoft.SqlServer.Types.SqlGeography
A SqlGeography value constructed from the specified WKT representation.

The Parse method is equivalent to STGeomFromText except that it assumes a spatial reference ID (SRID) of 4326 as a parameter. The input may carry optional Z (elevation) and M (measure) values.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.