Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 538 Bytes

File metadata and controls

36 lines (26 loc) · 538 Bytes
description
This section contains reference documentation for the ST_AsText function.

ST_AsText

Returns the WKT representation of the geometry/geography.

Signature

ST_AsText(geometryObject)

Usage Examples

select stAsText(
    STPOINT(-122, 37)
) AS value
from ignoreMe 
value
POINT (-122 37)
select stAsText(
    ST_GeogFromText('LINESTRING (30 10, 10 30, 40 40)')
) AS value
from ignoreMe 
value
LINESTRING (30 10, 10 30, 40 40)