Search in sources :

Example 1 with MapFilter

use of uk.me.parabola.mkgmap.filters.MapFilter in project mkgmap by openstreetmap.

the class LayerFilterChain method doFilter.

public void doFilter(MapElement element) {
    int nfilters = filters.size();
    log.debug("doing filter pos=", position, "out of=", nfilters);
    if (position >= nfilters)
        return;
    MapFilter f = filters.get(position++);
    try {
        f.doFilter(element, this);
        // maintain chain position for repeated calls in the split filters
        position--;
    } catch (RuntimeException e) {
        // maintain position
        position--;
        throw e;
    }
}
Also used : MapFilter(uk.me.parabola.mkgmap.filters.MapFilter)

Aggregations

MapFilter (uk.me.parabola.mkgmap.filters.MapFilter)1