ST_MLineFromText¶
Constructs a MultiLineString from Well-Known Text (WKT), erroring if the input is not a MultiLineString.
Usage¶
geometry ST_MLineFromText(wkt: string)
geometry ST_MLineFromText(wkt: string, srid: crs)
Arguments¶
- wkt (string)
- srid (crs)
Description¶
Parses a WKT string and returns a geometry. Raises an error if the WKT does not represent a MultiLineString.
Examples¶
SELECT ST_MLineFromText('MULTILINESTRING ((0 0, 1 1), (2 2, 3 3))');
┌────────────────────────────────────────────────────────────────────┐
│ st_mlinefromtext(Utf8("MULTILINESTRING ((0 0, 1 1), (2 2, 3 3))")) │
│ geometry │
╞════════════════════════════════════════════════════════════════════╡
│ MULTILINESTRING((0 0,1 1),(2 2,3 3)) │
└────────────────────────────────────────────────────────────────────┘
With an SRID or CRS:
SELECT ST_MLineFromText('MULTILINESTRING ((0 0, 1 1), (2 2, 3 3))', 4326);
┌──────────────────────────────────────────────────────────────────────────────┐
│ st_mlinefromtext(Utf8("MULTILINESTRING ((0 0, 1 1), (2 2, 3 3))"),Int64(4326 │
│ ))… │
╞══════════════════════════════════════════════════════════════════════════════╡
│ MULTILINESTRING((0 0,1 1),(2 2,3 3)) │
└──────────────────────────────────────────────────────────────────────────────┘