SqlGeography.STPolyFromText(SqlChars, Int32) Method

Definition

Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation augmented with any Z (elevation) and M (measure) values carried by the instance.

[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)]
public static Microsoft.SqlServer.Types.SqlGeography STPolyFromText (System.Data.SqlTypes.SqlChars polygonTaggedText, int srid);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)>]
static member STPolyFromText : System.Data.SqlTypes.SqlChars * int -> Microsoft.SqlServer.Types.SqlGeography
Public Shared Function STPolyFromText (polygonTaggedText As SqlChars, srid As Integer) As SqlGeography

Parameters

polygonTaggedText
SqlChars

The WKT 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 value constructed from the specified WKT representation.

Attributes

Applies to