Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 475 Bytes

File metadata and controls

26 lines (18 loc) · 475 Bytes

ST_AsText,ST_AsWKT

description

Syntax

VARCHAR ST_AsText(GEOMETRY geo)

将一个几何图形转化为WKT(Well Known Text)的表示形式

example

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

keyword

ST_ASTEXT,ST_ASWKT,ST,ASTEXT,ASWKT