[mkgmap-dev] Order of objects rendered
From Gerd Petermann GPetermann_muenchen at hotmail.com on Thu Jan 28 07:03:19 GMT 2016
Hi Dave, I think you answered your question already. If you favour a one of the tags, make sure that the corresponding rule(s) are processed as early as possible. If you want to create two POI for such a case, use the continue statement so that further rules are processed. Gerd ________________________________ Von: mkgmap-dev-bounces at lists.mkgmap.org.uk <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Dave Swarthout <daveswarthout at gmail.com> Gesendet: Donnerstag, 28. Januar 2016 02:40 An: Development list for mkgmap Betreff: [mkgmap-dev] Order of objects rendered I saw a note on the tagging list just now that reflects on something I've been curious about for some time. If mkgmap comes upon an object that has two tags, both of which are valid, which one will mkgmap use? Here is the post: One of the rules we use is the "one feature, one OSM element" [1] This makes sense for a lot of elements, e.g. if something has the tag: higway=residential it would be silly to also have amenity=restaurant on the same element. But it is not very uncommon to have a memorial that was created as a piece of art by an artist. One could tag such an object with: tourism=artwork historic=memorial and of course add other relevant stuff like artist_name etc. But what should be rendered in such a case? The memorial or the artwork? >From my understanding, once a node or way with a valid code has been encountered during style processing, mkgmap considers it finished and moves to the next item. But let's say I prefer to see the historic=memoriaI tag rendered and don't care about artwork, is there a way to prioritize the assignment of icons to one of those tags? Cheers, Dave -- Dave Swarthout Homer, Alaska Chiang Mai, Thailand Travel Blog at http://dswarthout.blogspot.com [http://lh5.googleusercontent.com/-SHQkwb5j5Xk/AAAAAAAAAAI/AAAAAAAAFb0/n1UPJYdBgOc/s80-c/photo.jpg]<http://dswarthout.blogspot.com/> I'm Outta Here<http://dswarthout.blogspot.com/> dswarthout.blogspot.com I feel privileged to be able to live in Chiang Mai at this stage of my life. Although it's a big city with an area population of about 1.5 million and represents a ... [https://ipmcdn.avast.com/images/logo-avast-v1.png]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> This email has been sent from a virus-free computer protected by Avast. www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20160128/1c6da04e/attachment-0001.html>
- Previous message: [mkgmap-dev] Order of objects rendered
- Next message: [mkgmap-dev] address search
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list