Skip to main content

ST_GEOMETRYFROMTEXT,ST_GEOMFROMTEXT

Description​

Convert a linear WKT (Well Known Text) to the corresponding memory geometry

Syntax​

ST_GeometryFromText( <wkt>)

Parameters​

ParametersInstructions
<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) |
+---------------------------------------------------------+