Opened 12 years ago
Closed 12 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":
- it force the new role to be "street"
- 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)
Change History (4)
by , 12 years ago
| Attachment: | PasteRelationsAction-associatedStreet.patch added |
|---|
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Thanks! Left out the name change part (probably surprising for the user).
comment:3 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |



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