copyInternal method

MultiPolygon copyInternal()
override

An internal method to copy subclass-specific geometry data.

@return a copy of the target geometry object.

Implementation

MultiPolygon copyInternal() {
  List<Polygon> polygons = []; //..length = this.geometries.length;
  for (int i = 0; i < this.geometries.length; i++) {
    polygons.add(this.geometries[i].copy() as Polygon);
  }
  return new MultiPolygon.withFactory(polygons, geomFactory);
}