ArcGIS Server Banner

ST_MultiLineString

ST_MultiLineString

Release 9.3 E-mail This TopicPrintable VersionGive Us feedback
Note: This topic was updated for 9.3.1.

Definition

ST_MultiLineString constructs a multilinestring from a well-known text representation.

Syntax

Oracle

sde.st_multilinestring (wkt clob, srid integer)

PostgreSQL

st_multilinestring (wkt, srid integer)
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 st_geometry);

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))', 0)
); 

SELECT 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))

See Also

  • An overview of SQL functions used with ST_Geometry types