Class GeometryVertexInserter.InsertVertexOperation
- java.lang.Object
-
- org.locationtech.jts.geom.util.GeometryEditor.CoordinateOperation
-
- org.locationtech.jtstest.testbuilder.geom.GeometryVertexInserter.InsertVertexOperation
-
- All Implemented Interfaces:
GeometryEditor.GeometryEditorOperation
- Enclosing class:
- GeometryVertexInserter
private static class GeometryVertexInserter.InsertVertexOperation extends GeometryEditor.CoordinateOperation
-
-
Field Summary
Fields Modifier and Type Field Description private LineStringlineprivate CoordinatenewVertexprivate intsegIndex
-
Constructor Summary
Constructors Constructor Description InsertVertexOperation(LineString line, int segIndex, Coordinate newVertex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Coordinate[]edit(Coordinate[] coords, Geometry geometry)Edits the array ofCoordinates from aGeometry.-
Methods inherited from class org.locationtech.jts.geom.util.GeometryEditor.CoordinateOperation
edit
-
-
-
-
Field Detail
-
line
private LineString line
-
segIndex
private int segIndex
-
newVertex
private Coordinate newVertex
-
-
Constructor Detail
-
InsertVertexOperation
public InsertVertexOperation(LineString line, int segIndex, Coordinate newVertex)
-
-
Method Detail
-
edit
public Coordinate[] edit(Coordinate[] coords, Geometry geometry)
Description copied from class:GeometryEditor.CoordinateOperationEdits the array ofCoordinates 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:
editin 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)
-
-