public class PrecisionReducerCoordinateOperation extends GeometryEditor.CoordinateOperation
Constructor and Description |
---|
PrecisionReducerCoordinateOperation(PrecisionModel targetPM,
boolean removeCollapsed) |
Modifier and Type | Method and Description |
---|---|
Coordinate[] |
edit(Coordinate[] coordinates,
Geometry geom)
Edits the array of
Coordinate s from a Geometry . |
edit
public PrecisionReducerCoordinateOperation(PrecisionModel targetPM, boolean removeCollapsed)
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 listCopyright © 2020. All rights reserved.