clone method
Creates and returns a full copy of this {@link Geometry} object (including all coordinates contained by it). Subclasses are responsible for overriding this method and copying their internal data. Overrides should call this method first.
@return a clone of this instance @deprecated
Implementation
Object? clone() {
try {
Geometry clone = copy(); // TODO check, was clone
if (clone.envelope != null) {
clone.envelope = new Envelope.fromEnvelope(clone.envelope!);
}
return clone;
} catch (e) {
Assert.shouldNeverReachHere();
return null;
}
}