Files
doris/docs/en/sql-reference/sql-functions/spatial-functions/st_polygon.md
ZhangYu0123 1d9b3aeee7 [Doc] Repair document format (#4336)
The error format '##keyword' in a lot of docs. This pr is to repair document format. #4335
2020-08-13 23:39:41 +08:00

1.6 KiB

title, language
title language
`ST_Polygon`,`ST_PolyFromText`,`ST_PolygonFromText` en

ST_Polygon,ST_PolyFromText,ST_PolygonFromText

Description

Syntax

'GEOMETRY ST'u Polygon (VARCHAR wkt)'

Converting a WKT (Well Known Text) into a corresponding polygon memory form

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

keyword

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