lineString abstract method

void lineString(
  1. PositionSeries chain, {
  2. String? name,
  3. Box? bounds,
})

Writes a line string geometry with a chain of positions.

Use an optional name to specify a name for a geometry (when applicable).

An optional bounds can used set a minimum bounding box for a geometry written. A writer implementation may use it or ignore it.

An example to write a line string with 3 points and a bounding box:

  content.lineString(
      // points as a flat structure with three (x, y) points
      [
           -1.1, -1.1,
           2.1, -2.5,
           3.5, -3.49,
      ].positions(Coords.xy),
      bounds: [-1.1, -3.49, 3.5, -1.1].box,
  );

Implementation

void lineString(
  PositionSeries chain, {
  String? name,
  Box? bounds,
});