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
Coordinates from a Geometry. |
editpublic 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 listCopyright © 2020. All rights reserved.