Class GeometryVertexDeleter.DeleteVertexOperation
java.lang.Object
org.locationtech.jts.geom.util.GeometryEditor.CoordinateOperation
org.locationtech.jtstest.testbuilder.geom.GeometryVertexDeleter.DeleteVertexOperation
- All Implemented Interfaces:
GeometryEditor.GeometryEditorOperation
- Enclosing class:
GeometryVertexDeleter
private static class GeometryVertexDeleter.DeleteVertexOperation
extends GeometryEditor.CoordinateOperation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedit
(Coordinate[] coords, Geometry geometry) Edits the array ofCoordinate
s from aGeometry
.Methods inherited from class org.locationtech.jts.geom.util.GeometryEditor.CoordinateOperation
edit
-
Field Details
-
line
-
vertexIndex
private int vertexIndex -
newVertex
-
-
Constructor Details
-
DeleteVertexOperation
-
-
Method Details
-
edit
Description copied from class:GeometryEditor.CoordinateOperation
Edits the array ofCoordinate
s from aGeometry
.If it is desired to preserve the immutability of Geometrys, if the coordinates are changed a new array should be created and returned.
- Specified by:
edit
in classGeometryEditor.CoordinateOperation
- Parameters:
coords
- the coordinate array to operate ongeometry
- the geometry containing the coordinate list- Returns:
- an edited coordinate array (which may be the same as the input)
-