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