Package org.locationtech.jts.precision
Class PrecisionReducerCoordinateOperation
- java.lang.Object
-
- org.locationtech.jts.geom.util.GeometryEditor.CoordinateOperation
-
- org.locationtech.jts.precision.PrecisionReducerCoordinateOperation
-
- All Implemented Interfaces:
GeometryEditor.GeometryEditorOperation
public class PrecisionReducerCoordinateOperation extends GeometryEditor.CoordinateOperation
-
-
Constructor Summary
Constructors Constructor Description PrecisionReducerCoordinateOperation(PrecisionModel targetPM, boolean removeCollapsed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Coordinate[]
edit(Coordinate[] coordinates, Geometry geom)
Edits the array ofCoordinate
s from aGeometry
.-
Methods inherited from class org.locationtech.jts.geom.util.GeometryEditor.CoordinateOperation
edit
-
-
-
-
Constructor Detail
-
PrecisionReducerCoordinateOperation
public PrecisionReducerCoordinateOperation(PrecisionModel targetPM, boolean removeCollapsed)
-
-
Method Detail
-
edit
public Coordinate[] edit(Coordinate[] coordinates, Geometry geom)
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:
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)
-
-