Definition
ST_MLineFromText takes a well-known text representation of type ST_MultiLineString and a spatial reference ID and returns an ST_MultiLineString.
Syntax
Oracle
sde.st_mlinefromtext (wkt clob, srid integer)
sde.st_mlinefromtext (wkt clob)
If you do not specify an SRID, the spatial reference defaults to 4326.
SQLite
st_mlinefromtext (wkt text, srid int32)
st_mlinefromtext (wkt text)
If you do not specify an SRID, the spatial reference defaults to 4326.
Return type
ST_MultiLineString
Example
The mlinestring_test table is created with the gid smallint column that uniquely identifies the row and the ml1 ST_MultiLineString column.
The INSERT statement inserts the ST_MultiLineString using the ST_MLineFromText function.
Oracle
CREATE TABLE mlinestring_test (
gid smallint,
ml1 sde.st_geometry
);
INSERT INTO MLINESTRING_TEST VALUES (
1,
sde.st_mlinefromtext ('multilinestring ((10.01 20.03, 10.52 40.11, 30.29 41.56,
31.78 10.74), (20.93 20.81, 21.52 40.10))', 4326)
);
SQLite
CREATE TABLE mlinestring_test (
gid integer
);
SELECT AddGeometryColumn (
NULL,
'mlinestring_test',
'ml1',
4326,
'multilinestring',
'xy',
'null'
);
INSERT INTO MLINESTRING_TEST VALUES (
1,
st_mlinefromtext ('multilinestring ((10.01 20.03, 10.52 40.11, 30.29 41.56,
31.78 10.74), (20.93 20.81, 21.52 40.10))', 4326)
);