createGeometry method
Creates a deep copy of the input {@link Geometry}. The {@link CoordinateSequenceFactory} defined for this factory is used to copy the {@link CoordinateSequence}s of the input geometry.
This is a convenient way to change the CoordinateSequence used to represent a geometry, or to change the factory used for a geometry.
{@link Geometry#copy()} can also be used to make a deep copy, but it does not allow changing the CoordinateSequence type.
@return a deep copy of the input geometry, using the CoordinateSequence type of this factory
@see Geometry#copy()
Implementation
Geometry? createGeometry(Geometry? g) {
GeometryEditor editor = new GeometryEditor(this);
return editor.edit(g, new CoordSeqCloneOp(_coordinateSequenceFactory));
}