VeloDB Cloud
SQL Manual
Functions
spatial-functions
ST_AsText,ST_AsWKT

ST_AsText,ST_AsWKT

Description

Syntax:

VARCHAR ST_AsText (GEOMETRY geo)

This function converts a geometric figure into a WKT (Well Known Text) representation.

Example

mysql> SELECT ST_AsText(ST_Point(24.7, 56.7));
+---------------------------------+
| st_astext(st_point(24.7, 56.7)) |
+---------------------------------+
| POINT (24.7 56.7)               |
+---------------------------------+

Keywords

ST_ASTEXT,ST_ASWKT,ST,ASTEXT,ASWKT