ST_GEOMETRYFROMTEXT,ST_GEOMFROMTEXT
Descriptionβ
Convert a linear WKT (Well Known Text) to the corresponding memory geometry
Syntaxβ
ST_GeometryFromText( <wkt>)
Parametersβ
Parameters | Instructions |
---|---|
<wkt> | The memory form of the graph |
Return Valueβ
The corresponding geometric storage form of WKB
Examplesβ
SELECT ST_AsText(ST_GeometryFromText("LINESTRING (1 1, 2 2)"));
+---------------------------------------------------------+
| st_astext(st_geometryfromtext('LINESTRING (1 1, 2 2)')) |
+---------------------------------------------------------+
| LINESTRING (1 1, 2 2) |
+---------------------------------------------------------+