ST_PolyFromText(wkt[,srid]) ST_PolygonFromText(wkt[,srid]) PolyFromText(wkt[,srid]) PolygonFromText(wkt[,srid])
Constructs a POLYGON value using its WKT representation and SRID.
ST_PolyFromText()
, ST_PolygonFromText()
, PolyFromText()
and ST_PolygonFromText()
are all synonyms.
CREATE TABLE gis_polygon (g POLYGON); INSERT INTO gis_polygon VALUES (PolygonFromText('POLYGON((10 10,20 10,20 20,10 20,10 10))')), (PolyFromText('POLYGON((0 0,50 0,50 50,0 50,0 0), (10 10,20 10,20 20,10 20,10 10))'));
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/polyfromtext/