Skip to main content
Version: 2.5

ST_LineFromText,ST_LineStringFromText

Description

Converts a WKT (Well Known Text) to a memory representation in the form of Line.

Syntax

GEOMETRY ST_LineFromText(VARCHAR wkt)

Examples

MySQL > SELECT ST_AsText(ST_LineFromText("LINESTRING (1 1, 2 2)"));
+---------------------------------------------------------+
| st_astext(st_geometryfromtext('LINESTRING (1 1, 2 2)')) |
+---------------------------------------------------------+
| LINESTRING (1 1, 2 2) |
+---------------------------------------------------------+

keyword

ST_LINEFROMTEXT,ST_LINESTRINGFROMTEXT,ST,LINEFROMTEXT,LINESTRINGFROMTEXT