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