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