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;
}
}
Aggregations