com.vividsolutions.jts.precision
Class PrecisionReducerCoordinateOperation
java.lang.Object
com.vividsolutions.jts.geom.util.GeometryEditor.CoordinateOperation
com.vividsolutions.jts.precision.PrecisionReducerCoordinateOperation
- All Implemented Interfaces:
- GeometryEditor.GeometryEditorOperation
public class PrecisionReducerCoordinateOperation
- extends GeometryEditor.CoordinateOperation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrecisionReducerCoordinateOperation
public PrecisionReducerCoordinateOperation(PrecisionModel targetPM,
boolean removeCollapsed)
edit
public Coordinate[] edit(Coordinate[] coordinates,
Geometry geom)
- Description copied from class:
GeometryEditor.CoordinateOperation
- Edits the array of
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.
- Specified by:
edit
in class GeometryEditor.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)
Copyright © 2012. All Rights Reserved.