[josm-dev] prop()/is_prop_set() on left side of > sign
Paul Hartmann
phaaurlt at gmail.com
Thu Jul 17 10:16:41 UTC 2014
On 17.07.2014 09:16, Martin Vonwald wrote:
> Hi!
>
> On [1] it says in the section "Child selector" in one of the notes: "The
> functions prop() and is_prop_set() are only supported on the right side of
> the > sign. "
>
> Right now I'm under the impression that this is not true and in fact at
> least is_prop_set with a given layer also works on the left side of the >
> sign.
>
> Can someone confirm or deny this? And if it works: is it intended or just a
> bug that might be fixed?
Let's say, you get undefined behavior when using prop() and
is_prop_set() on the left hand side of the > sign.
What I would intuitively expect, is to get the properties of the parent
object, e.g.
way[highway=residential], way[highway=primary] {
is_highway: true;
}
way[is_prop_set("is_highway")] > node {
...
}
This is not going to work! Instead it will probably check the properties
of the current object or something like that, so it is not really useful
to write anything in that form ...
Paul
More information about the josm-dev
mailing list