Constructs a linestring from a text representation.
Syntax
NEW ST_LineString(LONG VARCHAR text_representation[, INT srid])
Parameters
text_representation –
A string containing the text representation of a linestring. The input can be in any supported text input format, including Well Known Text (WKT) or Extended Well Known Text (EWKT).
srid –
The SRID of the result. If not specified, the default is 0.
Returns
ST_LineString Returns an ST_LineString value constructed from the source string.
Examples
Example 1 –
The following returns LineString (0 0, 5 10).
SELECT NEW ST_LineString('LineString (0 0, 5 10)')