lineStringSeries method

BoundedSeries<LineString<PointType>> lineStringSeries(
  1. Iterable lineStrings, {
  2. LineStringType type = LineStringType.any,
})

Parses a series of line strings.

Throws FormatException if cannot create a series of line strings.

Implementation

BoundedSeries<LineString<PointType>> lineStringSeries(
  Iterable<dynamic> lineStrings, {
  LineStringType type = LineStringType.any,
}) =>
    BoundedSeries<LineString<PointType>>.from(
      lineStrings.map<LineString<PointType>>(
        (dynamic points) => lineString(points as Iterable, type: type),
      ),
    );