Hi, Gerd,
the change is caused by the fact that the filter was thought primarily for working in relations file inside of the apply{} block and needs that the tag given as last parameter is a local tag of the element being processed (e.g. a way). But the old code line says: "value = filter.filter(tagval,el);", 'el' being the parent relation the way is in. That is, in the filter I only have an access to the (global) relation's tags, but what I actually need are the tags of the (local) element being currently processed.
While applying filters to "plain" elements (those not inside a relation, e.g. in points or lines files), 'local_el' and 'el' are equal, so my change should not corrupt anything.
Max
Gesendet: Donnerstag, 29. Januar 2015 um 11:20 Uhr
Von: "Gerd Petermann" <[email protected]>
An: "[email protected]" <[email protected]>
Betreff: Re: [mkgmap-dev] Patch: New filter "not-contained"
Von: "Gerd Petermann" <[email protected]>
An: "[email protected]" <[email protected]>
Betreff: Re: [mkgmap-dev] Patch: New filter "not-contained"
_______________________________________________ mkgmap-dev mailing list [email protected] http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
