Share via


SqlGeography.STGeomCollFromText(SqlChars, Int32) Method

Definition

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

Parameters

geometryCollectionTaggedText
SqlChars

Is the WKT representation of the geography instance you wish to return. geometrycollection_tagged_text is an nvarchar(max) expression.

srid
Int32

Is an int expression representing the spatial reference ID (SRID) of the geography instance you wish to return.

Returns

A geography instance.

Attributes

Applies to