public class PrecisionReducerCoordinateOperation extends GeometryEditor.CoordinateOperation
| Modifier and Type | Field and Description |
|---|---|
private boolean |
removeCollapsed |
private PrecisionModel |
targetPM |
| Constructor and Description |
|---|
PrecisionReducerCoordinateOperation(PrecisionModel targetPM,
boolean removeCollapsed) |
| Modifier and Type | Method and Description |
|---|---|
Coordinate[] |
edit(Coordinate[] coordinates,
Geometry geom)
Edits the array of
Coordinates from a Geometry. |
editprivate PrecisionModel targetPM
private boolean removeCollapsed
public PrecisionReducerCoordinateOperation(PrecisionModel targetPM, boolean removeCollapsed)
public Coordinate[] edit(Coordinate[] coordinates, Geometry geom)
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.CoordinateOperationcoordinates - the coordinate array to operate ongeom - the geometry containing the coordinate list