private static class GeometryVertexInserter.InsertVertexOperation extends GeometryEditor.CoordinateOperation
| Modifier and Type | Field and Description |
|---|---|
private LineString |
line |
private Coordinate |
newVertex |
private int |
segIndex |
| Constructor and Description |
|---|
InsertVertexOperation(LineString line,
int segIndex,
Coordinate newVertex) |
| Modifier and Type | Method and Description |
|---|---|
Coordinate[] |
edit(Coordinate[] coords,
Geometry geometry)
Edits the array of
Coordinates from a Geometry. |
editprivate LineString line
private int segIndex
private Coordinate newVertex
public InsertVertexOperation(LineString line, int segIndex, Coordinate newVertex)
public Coordinate[] edit(Coordinate[] coords, Geometry geometry)
GeometryEditor.CoordinateOperationCoordinates 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.CoordinateOperationcoords - the coordinate array to operate ongeometry - the geometry containing the coordinate list