|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jts.precision.CoordinatePrecisionReducerFilter
Reduces the precision of the Coordinates in a
CoordinateSequence to match the supplied PrecisionModel.
Uses PrecisionModel.makePrecise(double).
The input is modified in-place, so
it should be cloned beforehand if the
original should not be modified.
| Constructor Summary | |
CoordinatePrecisionReducerFilter(PrecisionModel precModel)
Creates a new precision reducer filter. |
|
| Method Summary | |
void |
filter(CoordinateSequence seq,
int i)
Rounds the Coordinates in the sequence to match the PrecisionModel |
boolean |
isDone()
Always runs over all geometry components. |
boolean |
isGeometryChanged()
Always reports that the geometry has changed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CoordinatePrecisionReducerFilter(PrecisionModel precModel)
precModel - the PrecisionModel to use| Method Detail |
public void filter(CoordinateSequence seq,
int i)
filter in interface CoordinateSequenceFilterseq - the CoordinateSequence to which the filter is appliedi - the index of the coordinate to apply the filter topublic boolean isDone()
isDone in interface CoordinateSequenceFilterpublic boolean isGeometryChanged()
isGeometryChanged in interface CoordinateSequenceFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||