ST_ASEWKT
functionsupportedCore SQL functionsGiven a value of type GEOGRAPHY or GEOMETRY, return the text (VARCHAR) representation of that value in EWKT (extended well-known text) format.
Syntax
ST_ASEWKT( <geography_or_geometry_expression> )
Parameters
| Name | Required | Description |
|---|---|---|
geography_or_geometry_expression | required | The argument must be an expression of type GEOGRAPHY or GEOMETRY. |
Returns
A VARCHAR.
Usage notes
- For GEOGRAPHY objects, the SRID in the return value is always 4326. See the note on EWKT handling.
- To return the output in WKT format, use ST_ASWKT instead.