Commit r4208: simplify and improve UnusedElementsRemoverHook

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Commit r4208: simplify and improve UnusedElementsRemoverHook

svn commit
Version mkgmap-r4208 was committed by gerd on Sun, 22 Jul 2018

simplify and improve UnusedElementsRemoverHook
(improved unused.patch published 2018-07-17)

1) The old code was not adapted to some changes in r3175:
It checks if a way without tags is member of a relation, because the rules in relation may add tags to this way.
This was okay when the hook was added to the source, but the hook is now executed after
those rules were executed, so that check is not needed.
2) It doesn't remove nodes outside of the tile bbox when such a node has tags keys that are used by the POI generator (--pois-to-areas-placement)
I've changed the code so that it checks for the combination of tag key and value, not only for the key.
3) The check if a way is outside of the tile bbox did not work for ways which have a bbox that intersects with the tile bbox
while the way itself neither crosses the bbox nor contains it (e.g. a large polygon).


http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=4208
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev