logo separator

[mkgmap-dev] Question reg. LayerFilterChain.addElement

From Steve Ratcliffe steve at parabola.me.uk on Mon Feb 4 17:58:49 GMT 2013

It was my intention that a filter either calls doFilter or drops the element.

GerdP <gpetermann_muenchen at 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-tp5748072.html
>Sent from the Mkgmap Development mailing list archive at Nabble.com.
>_______________________________________________
>mkgmap-dev mailing list
>mkgmap-dev at lists.mkgmap.org.uk
>http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20130204/4c92c2db/attachment.html 


More information about the mkgmap-dev mailing list