SqlGeography::STMLineFromText Method (SqlChars^, Int32)

 

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.

Namespace:   Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
static SqlGeography^ STMLineFromText(
	SqlChars^ multiLineStringTaggedText,
	int srid
)

Parameters

multiLineStringTaggedText
Type: System.Data.SqlTypes::SqlChars^

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

srid
Type: System::Int32

An integer expression representing the Spatial Reference ID (SRID) of the SqlGeographyMultiLineString instance you wish to return.

Return Value

Type: Microsoft.SqlServer.Types::SqlGeography^

A SqlGeography instance constructed from the specified WKT representation.

This method throws a FormatException if the input is not correctly formatted.

Return to top
Show: