[Tilesathome] patch for place_of_worship-icons

Jiri Klement jiri.klement at gmail.com
Tue Oct 28 06:17:40 GMT 2008


Take a look at this bug:
http://trac.openstreetmap.org/ticket/1226

chriscf was suggesting to use area symbols for virtually all features
which already have node symbol.

On Tue, Oct 28, 2008 at 1:45 AM, Martin Koppenhoefer
<dieterdreist at gmail.com> wrote:
> 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
> _______________________________________________
> Tilesathome mailing list
> Tilesathome at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/tilesathome
>
>




More information about the Tilesathome mailing list