private static class GeometryVertexDeleter.DeleteVertexOperation extends GeometryEditor.CoordinateOperation
Modifier and Type | Field and Description |
---|---|
private LineString |
line |
private Coordinate |
newVertex |
private int |
vertexIndex |
Constructor and Description |
---|
DeleteVertexOperation(LineString line,
int vertexIndex) |
Modifier and Type | Method and Description |
---|---|
Coordinate[] |
edit(Coordinate[] coords,
Geometry geometry)
Edits the array of
Coordinate s from a Geometry . |
edit
private LineString line
private int vertexIndex
private Coordinate newVertex
public DeleteVertexOperation(LineString line, int vertexIndex)
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 list