Modify

Opened 6 years ago

Closed 6 years ago

#9409 closed enhancement (fixed)

Compare two distinct key values in TagChecker

Reported by: naoliv Owned by: team
Priority: normal Milestone: 14.01
Component: Core validator Version:
Keywords: mapcss Cc:

Description

I don't know if this really fits into the TagChecker validator, but it would be good if we could use the value of two distinct keys in a comparison.

For example, if the value of "name" == the value of "ref".
As it is now (if I am not wrong), we can only compare one key to some value (but not one key value with another key value)

The logic for this: in Brazil people sometimes wrongly use the same value in name and ref on a highway. I also see cases where unnecessarily the name == old_name == official_name == everyotherkindof_name

Creating a local custom validator with such rules would help a lot.

Attachments (0)

Change History (4)

comment:1 Changed 6 years ago by Don-vip

Priority: minornormal

comment:2 Changed 6 years ago by Don-vip

This is not yet possible AFAIK but we should add this possibility in the course of #9414

comment:3 Changed 6 years ago by Don-vip

Keywords: mapcss added
Milestone: 14.01

comment:4 Changed 6 years ago by simon04

Resolution: fixed
Status: newclosed

In 6554/josm:

see #9414 fix #9409 - extend MapCSS condition syntax to allow the comparison of two key values

The syntax is [key1 = *key2] where * is inspired by the C de-reference operator, and = stands for any of =/!=/~=/^=/$=/*=/=~/!~.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.