ST_ASTEXT,ST_ASWKT
Descriptionβ
Convert a geometric figure to a representation of WKT (Well Known Text)
Syntaxβ
ST_AsText( <geo>)
Parametersβ
Parameters | Instructions |
---|---|
<geo> | The graph that needs to be converted |
Return Valueβ
The WKT representation of the geometry:
Examplesβ
SELECT ST_AsText(ST_Point(24.7, 56.7));
+---------------------------------+
| st_astext(st_point(24.7, 56.7)) |
+---------------------------------+
| POINT (24.7 56.7) |
+---------------------------------+