[Tilesathome] patch for place_of_worship-icons
Martin Koppenhoefer
dieterdreist at gmail.com
Tue Oct 28 00:45:01 GMT 2008
recently in the German and Italian- Mailing-List it came out, that it would
be generally appreciated to render the place-of-worship-icons for buildings
(areas) as well (right now they are only rendered for nodes). The patch is
quite simple and goes like this:
in Z17-rules,
insert in line 1652 (after rules for the nodes PoW) the following:
<rule e="way" k="amenity" v="place_of_worship">
<rule e="way" k="denomination|religion" v="jewish">
<areaSymbol ref="synagogue" position="center"/>
</rule>
<else>
<rule e="way" k="denomination|religion" v="muslim|moslem">
<areaSymbol ref="mosque" position="center"/>
</rule>
<else>
<rule e="way" k="denomination|religion" v="christian">
<areaSymbol ref="church" position="center"/>
</rule>
<else>
<rule e="way" k="denomination|religion"
v="sikhism|sikh">
<areaSymbol ref="khanda" position="center"/>
</rule>
<else>
<areaSymbol ref="peak" position="center"/>
</else>
</else>
</else>
</else>
</rule>
than patch the text to avoid cluttering with the symbols:
simply add "place_of_worship" to lines 2158 and 2166 (numbers after
insertion of the above) like this:
<rule e="way" k="amenity|shop"
v="school|college|university|parking|supermarket|place_of_worship"
layer="5">
and:
<rule e="way" k="amenity|shop"
v="school|college|university|parking|supermarket|place_of_worship"
layer="5">
an example rendering can be seen here:
http://www.koppenhoefer.com/osm/place_of_worship.svg
could someone please check this in svn?
thank you,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20081028/f63da357/attachment.html>
More information about the Tilesathome
mailing list