Files
doris/docs/documentation/cn/sql-reference/sql-functions/spatial-functions/st_geometryfromtext.md
ZHAO Chun 7cdaba66dc Add spatial func (#1213)
Support some spatial functions, such as ST_Contains.
2019-05-31 14:23:09 +08:00

581 B

ST_GeometryFromText,ST_GeomFromText

Syntax

GEOMETRY ST_GeometryFromText(VARCHAR wkt)

Description

将一个WKT(Well Known Text)转化为对应的内存的几何形式

Examples

mysql> SELECT ST_AsText(ST_GeometryFromText("LINESTRING (1 1, 2 2)"));
+---------------------------------------------------------+
| st_astext(st_geometryfromtext('LINESTRING (1 1, 2 2)')) |
+---------------------------------------------------------+
| LINESTRING (1 1, 2 2)                                   |
+---------------------------------------------------------+