Geography.ToWellKnownText

Syntax

Geography.ToWellKnownText(input as nullable record, optional omitSRID as nullable logical) as nullable text

Om

Översätter ett strukturerat geografiskt punktvärde till dess Well-Known textrepresentation (WKT) enligt definitionen i Open Geospatial Consortium (OGC), även det serialiseringsformat som används av många databaser, inklusive SQL Server.

Example

Konvertera ett strukturerat geografiskt punktvärde till dess Well-Known textrepresentation (WKT).

Förbrukning

Geography.ToWellKnownText([Kind = "POINT", Longitude = -122.127222, Latitude = 47.641944])

Output

"POINT(-122.127222 47.641944)"