Is there a JOSM function to paste tags w/ conflict resolution

Is there a function in JOSM that allows you to paste tags, but will show a dialog if the feature onto which the tags are being pasted already has tags that conflict with the ones being pasted? The dialog box might be something like the one you get when you attempt to combine two ways that have conflicting tags.

You can write your own validation rules to know exactly what you change.

for example, you want to add some tags to all the roads that have no surface tag (whimsical example, but still illustrative).

node[highway=primary][!surface]
{
	group: tr("My errors");
	throwError: ("Add surface where there isnt surface");
	fixAdd: "surface=paved";
}

You can then add as many tags as you want, when there isnt a surface tag.

node[highway=primary][!surface]
{
	group: tr("My errors");
	throwError: ("Add surface where there isnt surface");
	fixAdd: "surface=paved";
	fixAdd: "lit=yes";
	fixAdd: "oneway=yes";
	fixAdd: "bus=yes";
	fixAdd: "foot=no";
}

… or whatever.

When you have the fixAdd in the error or warning it lets you use the “FIX” button in the validator to just apply to everything.

There is also fixRemove if you want to subtract tags (fixAdd overwrites the value of the key, if the key already exists).

If you keep everything straight in what you do, for example select only the stuff you want to edit, and then “validate them”, then you can add whatever tags to them, given the criteria you decide on.

Thats what I would do anyway :slight_smile: