Modify

Opened 5 years ago

Closed 5 years ago

#9887 closed enhancement (fixed)

[PATCH] associatedStreet special handling for Paste relations (Ctrl+Alt+V)

Reported by: tyndare Owned by: team
Priority: normal Milestone:
Component: Plugin utilsplugin2 Version:
Keywords: associatedStreet relation Cc:

Description

I would like to use the Paste relations action (Ctrl+Alt+V) to copy associatedStreet relation from addr:housenumber node to highway ways.
The problem with the current implementation is that it keeps the same role, so the highway is added to the relation with the role "house".

The attached patch make a special treatment when it paste an associatedStreet relation:

  • if the element has the tag "addr:housenumber" it force the new role to be "house"
  • if the element has the tag "highway":
    1. it force the new role to be "street"
    2. if the highway does not have a "name" tag, it set it to the name of the relation.

Setting the name of the highway probably goes beyond the initial intent of this
"Paste relation action", but I think it is coherent as JOSM validator check that steet
member of associatedStreet relation must have the same name as the relation.


Attachments (1)

PasteRelationsAction-associatedStreet.patch (1.4 KB) - added by tyndare 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by tyndare

comment:1 Changed 5 years ago by bastiK

In [o30391]: applied #josm9887 - associatedStreet special handling for Paste relations (patch by tyndare)

comment:2 Changed 5 years ago by bastiK

Thanks! Left out the name change part (probably surprising for the user).

comment:3 Changed 5 years ago by bastiK

Resolution: fixed
Status: newclosed

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.