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