private static class GeometryBoxDeleter.BoxDeleteVertexOperation extends GeometryEditor.CoordinateOperation
Modifier and Type | Field and Description |
---|---|
private Envelope |
env |
private boolean |
isEdited |
Constructor and Description |
---|
BoxDeleteVertexOperation(Envelope env) |
Modifier and Type | Method and Description |
---|---|
Coordinate[] |
edit(Coordinate[] coords,
Geometry geometry)
Edits the array of
Coordinate s from a Geometry . |
private boolean |
hasVertexInBox(Coordinate[] coords) |
boolean |
isEdited() |
edit
private Envelope env
private boolean isEdited
public BoxDeleteVertexOperation(Envelope env)
public boolean isEdited()
public Coordinate[] edit(Coordinate[] coords, Geometry geometry)
GeometryEditor.CoordinateOperation
Coordinate
s 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.
edit
in class GeometryEditor.CoordinateOperation
coords
- the coordinate array to operate ongeometry
- the geometry containing the coordinate listprivate boolean hasVertexInBox(Coordinate[] coords)