ST_LineFromText — Returns a LineString object given its Well-known text Representation
geometry ST_LineFromText(varchar WKT);
geometry ST_LineFromText(varchar WKT, integer
SRID);
Creates a LineString from well-known text representation of a LineString and a Spatial Reference System ID (SRID). If the SRID is not provided it defaults to -1. If WKT passed in is not a LINESTRING, then null is returned.
| 2D | 3D | M |
|---|---|---|
![]() | ![]() | ![]() |
| OGC SFS for SQL. 1.1 (1999) | OGC SFS for SQL. 1.1.0 (2005) | OGC SFS for SQL. 1.2.0 (2006) | SQL-MM Part 3 |
|---|---|---|---|
| 3.2.6.2 | 7.2.6.1 | - | 7.2.8 |