POLYGONFROMWKB()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
See ST_
EXAMPLES
CREATE TABLE poly (c1 POLYGON);
SET @poly = PolygonFromWKB(ST_AsWKB(ST_PolygonFromText('POLYGON((0 0,1 1,2 2,0 0))')));
INSERT INTO poly VALUES (@poly);
SELECT ST_AsText(c1) FROM poly;
+----------------------------+
| ST_AsText(c1) |
+----------------------------+
| POLYGON((0 0,1 1,2 2,0 0)) |
+----------------------------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.