Skip to main content
Return the Extended Well-Known Text representation of a geography. EWKT is an extended version of WKT which includes the SRID of the geography. The format originated in PostGIS but is supported by many GIS tools.

Signatures

ST_AsEWKT (A: Geography)

Parameters

A
Geography
required
The input geometry.

Return type

A string representation.

Example

SELECT ST_AsEWKT(ST_GeogFromWKT('LINESTRING (1 2, 3 4, 5 6)', 4326))
SRID=4326; LINESTRING (1 2, 3 4, 5 6)