Files
doris/docs/en/sql-manual/sql-functions/spatial-functions/st_polygon.md
jiafeng.zhang 267e8b67c2 [refactor][doc]The new version of the document is online (#9272)
replace the `docs/` with `new-docs/`
2022-04-28 15:22:34 +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_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