Class PrecisionReducerCoordinateOperation
java.lang.Object
org.locationtech.jts.geom.util.GeometryEditor.CoordinateOperation
org.locationtech.jts.precision.PrecisionReducerCoordinateOperation
- All Implemented Interfaces:
GeometryEditor.GeometryEditorOperation
-
Constructor Summary
ConstructorsConstructorDescriptionPrecisionReducerCoordinateOperation(PrecisionModel targetPM, boolean removeCollapsed) -
Method Summary
Modifier and TypeMethodDescriptionedit(Coordinate[] coordinates, Geometry geom) Edits the array ofCoordinates from aGeometry.Methods inherited from class GeometryEditor.CoordinateOperation
edit
-
Constructor Details
-
PrecisionReducerCoordinateOperation
-
-
Method Details
-
edit
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:
coordinates- the coordinate array to operate ongeom- the geometry containing the coordinate list- Returns:
- an edited coordinate array (which may be the same as the input)
-