Converts a WKT (Well Known Text) to a memory representation in the form of a Line
ST_LINEFROMTEXT( <wkt>)
| Parameters | Instructions |
|---|---|
<wkt> | A line segment consisting of two coordinates |
The memory form of a line segment.
SELECT ST_AsText(ST_LineFromText("LINESTRING (1 1, 2 2)"));
+---------------------------------------------------------+ | st_astext(st_geometryfromtext('LINESTRING (1 1, 2 2)')) | +---------------------------------------------------------+ | LINESTRING (1 1, 2 2) | +---------------------------------------------------------+