copyInternal method

MultiLineString copyInternal()
override

An internal method to copy subclass-specific geometry data.

@return a copy of the target geometry object.

Implementation

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