ST_LineFromText
You are viewing an old version of this article. View
the current version here.
MariaDB starting with 5.3.3
ST_LineFromText was added as a synonym for LineFromText and ST_LineStringFromText as a synonym for LineStringFromText in MariaDB 5.3.3.
Syntax
ST_LineFromText(wkt[,srid]) ST_LineStringFromText(wkt[,srid]) LineFromText(wkt[,srid]) LineStringFromText(wkt[,srid])
Description
Constructs a LINESTRING value using its WKT representation and SRID.
ST_LineFromText()
, ST_LineStringFromText()
, ST_LineFromText()
and ST_LineStringFromText()
are all synonyms.
Examples
CREATE TABLE gis_line (g LINESTRING); SHOW FIELDS FROM gis_line; INSERT INTO gis_line VALUES (LineFromText('LINESTRING(0 0,0 10,10 0)')), (LineStringFromText('LINESTRING(10 10,20 10,20 20,10 20,10 10)')), (LineStringFromWKB(AsWKB(LineString(Point(10, 10), Point(40, 10)))));
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.