This section contains reference documentation for the ST_AsText function.
Last updated 2 years ago
Returns the WKT representation of the geometry/geography.
ST_AsText(geometryObject)
select stAsText( STPOINT(-122, 37) ) AS value from ignoreMe
select stAsText( ST_GeogFromText('LINESTRING (30 10, 10 30, 40 40)') ) AS value from ignoreMe
POINT (-122 37)
LINESTRING (30 10, 10 30, 40 40)