PostGIS

ST_MLineFromText

Prev

7.8.1. Well-Known Text (WKT)

Next

Name

ST_MLineFromText — Return a specified ST_MultiLineString value from WKT representation.

Synopsis

geometry +`*`+ST_MLineFromText*(`text `WKT, integer srid`)`;

geometry +`*`+ST_MLineFromText*(`text `WKT`)`;

Description

Makes a Geometry from Well-Known-Text (WKT) with the given SRID. If SRID is not given, it defaults to 0.

OGC SPEC 3.2.6.2 - option SRID is from the conformance suite

Returns null if the WKT is not a MULTILINESTRING

Note

If you are absolutely sure all your WKT geometries are points, don’t use this function. It is slower than ST_GeomFromText since it adds an additional validation step.

[.inlinemediaobject]check This method implements the OGC Simple Features Implementation Specification for SQL 1.1.

s3.2.6.2

check This method implements the SQL/MM specification.

SQL-MM 3: 9.4.4

Examples

SELECT ST_MLineFromText('MULTILINESTRING((1 2, 3 4), (4 5, 6 7))');

See Also

Prev

Up

Next

ST_LineFromText

Home

ST_MPointFromText