
It was my intention that a filter either calls doFilter or drops the element. GerdP <gpetermann_muenchen@hotmail.com> wrote:
Hi,
maybe I found an error, maybe my understanding is wrong...
I thought that all filters in the chain are executed before any element is finally passed to eg. the MapBuilder.LineAddFilter.LineAddFilter
But if eg. the LineSplitterFilter calls addElement() instead of doFilter() all following filters are skipped and MapBuilder.LineAddFilter.LineAddFilter is called directly. If this is intended, where should a filter that checks for equal coordinates be placed? I wanted to add it after RemoveEmpty(), but then some invalid lines are passed to the map.addMapObject() method.
ciao, Gerd
-- View this message in context: http://gis.19327.n5.nabble.com/Question-reg-LayerFilterChain-addElement-tp57... Sent from the Mkgmap Development mailing list archive at Nabble.com. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev