Definition
ST_MultiLineString constructs a multilinestring from a well-known text representation.
Syntax
Oracle
sde.st_multilinestring (wkt clob, srid integer)
PostgreSQL
sde.st_multilinestring (wkt clob, srid integer) sde.st_multilinestring (esri_shape bytea, srid integer)
SQLite
st_multilinestring (wkt text, srid int32)
Return type
ST_MultiLineString
Example
A table, mlines_test, is created, and one multiline is inserted to it using the ST_MultiLine function.
Oracle
CREATE TABLE mlines_test (
id integer,
geometry sde.st_geometry
);
INSERT INTO MLINES_TEST VALUES (
1910,
sde.st_multilinestring ('multilinestring ((33 2, 34 3, 35 6), (28 4, 29 5, 31 8, 43 12), (39 3, 37 4, 36 7))', 4326)
);
PostgreSQL
CREATE TABLE mlines_test (
id integer,
geometry sde.st_geometry
);
INSERT INTO mlines_test VALUES (
1910,
sde.st_multilinestring ('multilinestring ((33 2, 34 3, 35 6), (28 4, 29 5, 31 8, 43 12), (39 3, 37 4, 36 7))', 4326)
);
SQLite
CREATE TABLE mlines_test (
id integer
);
SELECT AddGeometryColumn(
NULL,
'mlines_test',
'geometry',
4326,
'multilinestring',
'xy',
'null'
);
INSERT INTO mlines_test VALUES (
1910,
st_multilinestring ('multilinestring ((33 2, 34 3, 35 6), (28 4, 29 5, 31 8, 43 12), (39 3, 37 4, 36 7))', 4326)
);