reverse method
Computes a new geometry which has all component coordinate sequences in reverse order (opposite orientation) to this one.
@return a reversed geometry
Implementation
Geometry reverse() {
Polygon poly = copy() as Polygon;
poly.shell = shell!.copy().reverse() as LinearRing;
poly.holes = []; //..length = holes!.length;
for (int i = 0; i < holes!.length; i++) {
poly.holes!.add(holes![i].copy().reverse() as LinearRing);
// poly.holes![i] = holes![i].copy().reverse() as LinearRing;
}
return poly; // return the clone
}