SelectDB Cloud
SQL 手册
函数
spatial-functions
ST_Polygon,ST_PolyFromText,ST_PolygonFromText

ST_Polygon,ST_PolyFromText,ST_PolygonFromText

description

Syntax

GEOMETRY ST_Polygon(VARCHAR wkt)

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

example

mysql> SELECT ST_AsText(ST_Polygon("POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))"));
+------------------------------------------------------------------+
| st_astext(st_polygon('POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))')) |
+------------------------------------------------------------------+
| POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))                          |
+------------------------------------------------------------------+

keywords

ST_POLYGON,ST_POLYFROMTEXT,ST_POLYGONFROMTEXT,ST,POLYGON,POLYFROMTEXT,POLYGONFROMTEXT

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