copy method
Geometry
copy()
inherited
Creates a deep copy of this {@link Geometry} object. Coordinate sequences contained in it are copied. All instance fields are copied (i.e. the SRID and userData).
NOTE: the userData object reference (if present) is copied, but the value itself is not copied. If a deep copy is required this must be performed by the caller.
@return a deep copy of this geometry
Implementation
Geometry copy() {
Geometry copy = copyInternal();
copy.SRID = this.SRID;
copy.userData = this.userData;
return copy;
}