ST_POLYGON,ST_POLYFROMTEXT,ST_POLYGONFROMTEXT
Descriptionβ
Convert a WKT (Well Known Text) to the corresponding polygonal memory form
Syntaxβ
ST_Polygon( <wkt>)
Parametersβ
Parameters | Instructions |
---|---|
<wkt> | A POLYGON generated by the polygon function |
Return Valueβ
Memory form of polygon
Examplesβ
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)) |
+------------------------------------------------------------------+