Opened 12 years ago
Last modified 6 years ago
#10391 closed enhancement
Add support for "not element of" operator (∉) — at Version 3
| Reported by: | Don-vip | Owned by: | team |
|---|---|---|---|
| Priority: | major | Milestone: | 19.05 |
| Component: | Core validator | Version: | |
| Keywords: | mapcss spatial operator building hangar aeroway barn | Cc: | simon04, bastiK, lists@… |
Description (last modified by )
I'd like to write this validator rule:
/* Many misuses of building=hangar insteaf of building=barn because it's the same word in French */ *[building=hangar][!aeroway] ∉ *[aeroway] { throwWarning: tr("{0} not inside {1}", "{0.tag}", "{2.key}"); }
It's not possible yet, is it possible to add !∈ as a new spatial operator (negation of element of)?
Change History (4)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
I don't know.. but it's quite ugly ;) By the way for consistency we should use ∉ (U+2209)
comment:3 by , 12 years ago
| Description: | modified (diff) |
|---|---|
| Summary: | Add support for "not element of" operator (!∈) → Add support for "not element of" operator (∉) |
by , 12 years ago
| Attachment: | 10391_not_working.patch added |
|---|
Note:
See TracTickets
for help on using tickets.



Does the following work?