point abstract method

void point(
  1. Iterable<double> position, {
  2. Coords? type,
  3. String? name,
})

Writes a point geometry with position.

Use an optional type to explicitely specify the type of coordinates. If not provided and an iterable has 3 items, then xyz coordinates are assumed.

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

Supported coordinate value combinations for Iterable<double> are: (x, y), (x, y, z), (x, y, m) and (x, y, z, m).

An example to write a point geometry with 2D coordinates:

   // using a coordinate value list (x, y)
   content.point([10, 20]);

An example to write a point geometry with 3D coordinates:

   // using a coordinate value list (x, y, z)
   content.point([10, 20, 30]);

An example to write a point geometry with 2D coordinates with measurement:

   // using a coordinate value list (x, y, m), need to specify type
   content.position([10, 20, 40], type: Coords.xym);

An example to write a point geometry with 3D coordinates with measurement:

   // using a coordinate value list (x, y, z, m)
   content.point([10, 20, 30, 40]);

Implementation

void point(
  Iterable<double> position, {
  Coords? type,
  String? name,
});