Skip to main content

ST_ASTEXT,ST_ASWKT

Description​

Convert a geometric figure to a representation of WKT (Well Known Text)

Syntax​

ST_AsText( <geo>)

Parameters​

ParametersInstructions
<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) |
+---------------------------------+