Share via


SqlGeography.Parse(SqlString) Method

Definition

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

[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)]
public static Microsoft.SqlServer.Types.SqlGeography Parse (System.Data.SqlTypes.SqlString s);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)>]
static member Parse : System.Data.SqlTypes.SqlString -> Microsoft.SqlServer.Types.SqlGeography
Public Shared Function Parse (s As SqlString) As SqlGeography

Parameters

s
SqlString

The WKT representation of the SqlGeography instance you wish to return.

Returns

A SqlGeography value constructed from the specified WKT representation.

Attributes

Applies to