Class GeometryEditor.CoordinateOperation

Hierarchy: Object , GeometryEditor.CoordinateOperation
All Implemented Interfaces: GeometryEditor.GeometryEditorOperation
public abstract static class GeometryEditor.CoordinateOperation
implements GeometryEditor.GeometryEditorOperation
A GeometryEditorOperation which edits the coordinate list of a Geometry. Operates on Geometry subclasses which contains a single coordinate list.
public final Geometry edit(Geometry geometry, GeometryFactory factory)
public abstract abstract Coordinate[] edit(Coordinate[] coordinates, Geometry geometry)
Edits the array of Coordinates from a Geometry.

If it is desired to preserve the immutability of Geometrys, if the coordinates are changed a new array should be created and returned.

Parameters:
coordinates - coordinates the coordinate array to operate on
geometry - geometry the geometry containing the coordinate list
Returns:
an edited coordinate array (which may be the same as the input)