ST_MultiLineString
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, srid integer) sde.st_multilinestring (esri_shape bytea, srid integer)
Return type
ST_MultiLineString
Example
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))', 0) ); SELECT sde.st_astext (geometry) MLINESTRING FROM MLINES_TEST; MLINESTRING MULTILINESTRING ((33.00000000 2.00000000, 34.00000000 3.00000000, 35.00000000 6.00000000), (28.00000000 4.00000000, 29.00000000 5.00000000, 31.00000000 8.0000000, 43.00000000 12.00000000), (39.00000000 3.00000000, 37.00000000 4.00000000, 36.00000000 7.00000000 ))
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))', 0) ); SELECT sde.st_astext (geometry) AS MLINESTRING FROM mlines_test; mlinestring MULTILINESTRING ((33 2, 34 3, 35 6), (28 4, 29 5, 31 8, 43 12), (39 3, 37 4, 36 7))
11/18/2013