Class CoordinatePrecisionReducerFilter

    • Constructor Detail

      • CoordinatePrecisionReducerFilter

        public CoordinatePrecisionReducerFilter​(PrecisionModel precModel)
        Creates a new precision reducer filter.
        Parameters:
        precModel - the PrecisionModel to use
    • Method Detail

      • filter

        public void filter​(CoordinateSequence seq,
                           int i)
        Rounds the Coordinates in the sequence to match the PrecisionModel
        Specified by:
        filter in interface CoordinateSequenceFilter
        Parameters:
        seq - the CoordinateSequence to which the filter is applied
        i - the index of the coordinate to apply the filter to
      • isDone

        public boolean isDone()
        Always runs over all geometry components.
        Specified by:
        isDone in interface CoordinateSequenceFilter
        Returns:
        false