Constructs a geometry object from a Well-Known Text (WKT) string. This function is equivalent to ST_GeomFromText and supports circular strings and curves.
Syntax
geometry ST_WKTToSQL(text WKT);Parameters
| Parameter | Description |
|---|---|
WKT | The WKT string to parse. |
Examples
SELECT ST_WKTToSQL('POINT(116 40)');Output:
st_geomfromtext
--------------------------------------------
01010000000000000000005D400000000000004440
(1 row)该文章对您有帮助吗?