SelectDB Cloud
SQL 手册
函数
spatial-functions
ST_GeometryFromText,ST_GeomFromText

ST_GeometryFromText,ST_GeomFromText

description

Syntax

GEOMETRY ST_GeometryFromText(VARCHAR wkt)

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

example

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

keywords

ST_GEOMETRYFROMTEXT,ST_GEOMFROMTEXT,ST,GEOMETRYFROMTEXT,GEOMFROMTEXT

© 2023 北京飞轮数据科技有限公司 京ICP备2022004029号 | Apache、Apache Doris 以及相关开源项目名称均为 Apache 基金会商标