Appearance
ST_ASEWKT
Returns the Extended Well-Known Text (EWKT) representation of a GEOGRAPHY
object, which includes the SRID prefix.
See also:
Syntax
sql
ST_ASEWKT(<input>)
Arguments
<input>
: TheGEOGRAPHY
object to be converted to EWKT format
Returns
A VARCHAR
containing the EWKT representation of the input GEOGRAPHY
, prefixed with its SRID.
Example
sql
SELECT ST_AsEWKT(ST_Point(1, 1)::GEOGRAPHY);
-- 'SRID=4326;POINT(1 1)'