writeTo method
Writes this geometry object to writer
.
Implementation
@override
void writeTo(SimpleGeometryContent writer) {
final type = onePoint?.type ?? Coords.xy;
writer.multiPolygon(
polygons.map<Iterable<Iterable<double>>>(
(e) => e.rings.map<Iterable<double>>((e) => e.chain.valuesFlat(type)),
),
type: type,
bounds:
boundsExplicit != null ? Box.getDoubleList(boundsExplicit!) : null,
);
}