MultiLineString.fromGeometries constructor

MultiLineString.fromGeometries(
  1. Iterable<LineString> lineStrings, {
  2. Box? bounds,
})

A multi line string from an iterable of lineStrings (each item as an instance of LineString).

A new instance shares chains of positions with the source.

An optional bounds set a minimum bounding box for a geometry.

Implementation

factory MultiLineString.fromGeometries(
  Iterable<LineString> lineStrings, {
  Box? bounds,
}) =>
    MultiLineString(
      lineStrings.map((line) => line.chain).toList(growable: false),
      bounds: bounds,
    );