Definition
ST_LineFromText takes a well-known text representation of type ST_LineString and a spatial reference ID and returns an ST_LineString.
Syntax
Oracle
sde.st_linefromtext (wkt clob, srid integer)
SQLite
st_linefromtext (wkt text, srid int32)
Return type
ST_LineString
Example
The linestring_test table is created with a single ln1 ST_LineString column.
The INSERT statement inserts an ST_LineString into the ln1 column using the ST_LineFromText function.
Oracle
CREATE TABLE linestring_test (ln1 sde.st_geometry);
INSERT INTO LINESTRING_TEST VALUES (
 sde.st_linefromtext ('linestring (10.01 20.03, 35.93 19.04)', 4326)
);
SQLite
CREATE TABLE linestring_test (id integer);
SELECT AddGeometryColumn (
 NULL,
 'linestring_test',
 'ln1',
 4326,
 'linestring',
 'xy',
 'null'
);
INSERT INTO LINESTRING_TEST (id, ln1) VALUES (
 1,
 st_linefromtext ('linestring (10.01 20.03, 35.93 19.04)', 4326)
);