multiPoint abstract method

void multiPoint(
  1. Iterable<Iterable<double>> points, {
  2. required Coords type,
  3. String? name,
  4. Iterable<double>? bounds,
})

Writes a multi point geometry with an array of points (each with a position).

Use the required type to explicitely set the coordinate type.

Each point is represented by Iterable<double> instances. Supported coordinate value combinations for positions are: (x, y), (x, y, z), (x, y, m) and (x, y, z, m).

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. Supported coordinate value combinations by coordinate type:

Type Expected values
xy minX, minY, maxX, maxY
xyz minX, minY, minZ, maxX, maxY, maxZ
xym minX, minY, minM, maxX, maxY, maxM
xyzm minX, minY, minZ, minM, maxX, maxY, maxZ, maxM

An example to write a multi point geometry with 3 points:

  content.multiPoint(
      [
           [-1.1, -1.1],
           [2.1, -2.5],
           [3.5, -3.49],
      ],
      type: Coords.xy,
  );

Implementation

void multiPoint(
  Iterable<Iterable<double>> points, {
  required Coords type,
  String? name,
  Iterable<double>? bounds,
});