Udostępnij przez


STMLineFromText (geography Data Type)

Zwraca geography wystąpienie z reprezentacja OGC (Otwieranie lokalizacji geograficznych Consortium) Well-Known tekstu (WKT), rozszerzony z dowolnego Z (podniesienie) i wartości M (miara) przez wystąpienie.

STMLineFromText ( 'multilinestring_tagged_text' , SRID )

Argumenty

  • multilinestring_tagged_text
    Is the WKT representation of the geographyMultiLineString instance you wish to return.multilinestring_tagged_text is an nvarchar(max) expression.

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

Zwracane typy

SQL Server typ zwrotny: geography

Zwracany typ CLR: SqlGeography

Typ OGC: MultiLineString

Remarks

Ta metoda wygeneruje FormatException Jeśli dane wejściowe nie są well-formatted.

Przykłady

W poniższym przykładzie użyto STMLineFromText() Aby utworzyć geography wystąpienie.

DECLARE @g geography;
SET @g = geography::STMLineFromText('MULTILINESTRING ((-122.358 47.653, -122.348 47.649, -122.348 47.658, -122.358 47.658, -122.358 47.653), (-122.357 47.654, -122.357 47.657, -122.349 47.657, -122.349 47.650, -122.357 47.654))', 4326);
SELECT @g.ToString();

See Also

Other Resources