Class GeometryVerticesMover.MoveVerticesOperation
- java.lang.Object
-
- org.locationtech.jts.geom.util.GeometryEditor.CoordinateOperation
-
- org.locationtech.jtstest.testbuilder.topostretch.GeometryVerticesMover.MoveVerticesOperation
-
- All Implemented Interfaces:
GeometryEditor.GeometryEditorOperation
- Enclosing class:
- GeometryVerticesMover
private class GeometryVerticesMover.MoveVerticesOperation extends GeometryEditor.CoordinateOperation
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map
moves
-
Constructor Summary
Constructors Constructor Description MoveVerticesOperation(java.util.Map moves)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Coordinate[]
edit(Coordinate[] coords, Geometry geometry)
Edits the array ofCoordinate
s from aGeometry
.private Coordinate
movedPt(Coordinate orig)
-
Methods inherited from class org.locationtech.jts.geom.util.GeometryEditor.CoordinateOperation
edit
-
-
-
-
Method Detail
-
edit
public Coordinate[] edit(Coordinate[] coords, Geometry geometry)
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)
-
movedPt
private Coordinate movedPt(Coordinate orig)
-
-