How to exclude features with name space in my validation code?

Hi all,

I’m working on my custom validator. Currently i’m able to successfully flag for mismatching tags between node and way for the crossing:markings=‘value’. However, I can’t figure out how to flag for ways that have namespace in the value. For example, crossing=markings=ladder:paired. (I’m not sure if namespace is the correct term is the value syntax is value:value).

Here is my line of code that i’m trying to fix:

way[crossing:markings=ladder:paired]> node{ set .is_crossing_ladder_paired_marking}
node:tagged[highway=crossing][crossing:markings!=ladder:paired][!ladder:paired].is_crossing_ladder_paired_marking{
        throwError: tr("mismatching crossing:markings=ladder:paired between node and way");
    }

Thank you in advance for taking a look!

6 posts - 3 participants

Read full topic


Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/how-to-exclude-features-with-name-space-in-my-validation-code/104114