[josm-dev] MapCSS selector operators

Malcolm Herring malcolm.herring at btinternet.com
Tue Jul 26 11:04:12 BST 2011


On 26/07/2011 09:54, Paul Hartmann wrote:
> Anyway, would be good to have 'set' implemented, as well. I still don't
> know what it does exactly, though. E.g. can you write something like this?
>
> *[religion][religion!=christian][religion!=jewish] {
>    set religion="INT-generic";
> }
>
> way[landuse=cemetery][religion="INT-generic"] {...}
>

This is my understanding of the 'set' operation. It creates a temporary 
tag that can be used by other selectors. I want to use it in a similar 
way to your illustration, to create a tag that distils some generic 
information implied by many different tags. More like:

*[religion=christian], *[religion=jewish], *[religion=islamic] { set 
religion-genus="Ibrahimic" }

I can then use all the selector operators on these temporary tags.

Right now, I am having to use the 'property' work-around as recommended 
in the Wiki (which, BTW, exhibits the problem even when the eval() 
wrapper is removed).




More information about the josm-dev mailing list