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

638 B

ST_Polygon,ST_PolyFromText,ST_PolygonFromText

Syntax

GEOMETRY ST_Polygon(VARCHAR wkt)

Description

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

Examples

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