JTS Topology Suite version 1.12

com.vividsolutions.jts.precision
Class PrecisionReducerCoordinateOperation

java.lang.Object
  extended by com.vividsolutions.jts.geom.util.GeometryEditor.CoordinateOperation
      extended by com.vividsolutions.jts.precision.PrecisionReducerCoordinateOperation
All Implemented Interfaces:
GeometryEditor.GeometryEditorOperation

public class PrecisionReducerCoordinateOperation
extends GeometryEditor.CoordinateOperation


Constructor Summary
PrecisionReducerCoordinateOperation(PrecisionModel targetPM, boolean removeCollapsed)
           
 
Method Summary
 Coordinate[] edit(Coordinate[] coordinates, Geometry geom)
          Edits the array of Coordinates from a Geometry.
 
Methods inherited from class com.vividsolutions.jts.geom.util.GeometryEditor.CoordinateOperation
edit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrecisionReducerCoordinateOperation

public PrecisionReducerCoordinateOperation(PrecisionModel targetPM,
                                           boolean removeCollapsed)
Method Detail

edit

public Coordinate[] edit(Coordinate[] coordinates,
                         Geometry geom)
Description copied from class: GeometryEditor.CoordinateOperation
Edits the array of Coordinates 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 on
geom - the geometry containing the coordinate list
Returns:
an edited coordinate array (which may be the same as the input)

JTS Topology Suite version 1.12