Opened 3 years ago
Last modified 3 years ago
#22350 new enhancement
[TaggingPreset] Add some values for "match" attribute to determine negative results of matching
Reported by: | KorneySan | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | tagging preset match | Cc: |
Description (last modified by )
Current version of match
has five values:
none
: neutral, i.e., do not consider this item for matchingkey
: positive if key matches, neutral otherwisekey!
: positive if key matches, negative otherwisekeyvalue
: positive if key and value matches, neutral otherwisekeyvalue!
: positive if key and value matches, negative otherwise
It becomes necessary to have negative match result only in some cases.
I propose to add some new values with following meaning:
!key
: negative if key matches, neutral otherwise!key!
: negative if key matches, positive otherwise!keyvalue
: negative if key and value matches, neutral otherwise!keyvalue!
: negative if key and value matches, positive otherwise
It is required because some tag keys have multiple values that partly belongs to different subjects.
For example, with public_transport=stop_position
we can use bus=yes
which belongs to "road" ways and train=yes
which belongs to "rail" ways. Using
<key key="train" match="!key" />
we can ensure that "rail" stop_position
preset will not be shown for "road" stop_position
.
Attachments (0)
Change History (2)
comment:1 by , 3 years ago
Description: | modified (diff) |
---|
comment:2 by , 3 years ago
Component: | Internal preset → Core |
---|---|
Keywords: | tagging preset added |
Similar to #19012.
Does
match_expression=""
work for you?