Skip to main content
Converts shapes of the GEOGRAPHY data type to the Well-Known Text (WKT) format.

Syntax

Parameters

Return Type

ST_ASTEXT returns a value of type TEXT.

Example

The following code example creates a GEOGRAPHY object from the WKT representation of a Point at specified longitude and latitude coordinates and converts it to WKT format:

Rows: 1Execution time: 6.66ms