writeTo method

  1. @override
void writeTo(
  1. GeometryContent writer
)
override

Writes this geometry object to writer.

Implementation

@override
void writeTo(GeometryContent writer) {
  // note: no need to inform is3D/hasM of the first point, as sub items on
  // a collection are geometries, and each of them should inform those
  writer.geometryCollection(
    (geom) {
      for (final item in geometries) {
        item.writeTo(geom);
      }
    },
    count: geometries.length,
    bounds:
        boundsExplicit != null ? Box.getDoubleList(boundsExplicit!) : null,
  );
}