This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

JOSM - Copy relations from one way to another

7
3

Sometimes I create a new way that needs to have the same relations as another way. It is quite easy to copy the tags from the old way to the new way. But in this case there are also a few relations that should be "copied" to the new way.

Is there a simple way to achieve this?

Last time I just modified every relation itself, which is quite annoying if you have to do the same steps 10 times in a row.

asked 03 Apr '11, 15:31

Flow's gravatar image

Flow
64641116
accept rate: 25%

1

I mode a JOSM feature request: https://josm.openstreetmap.de/ticket/6224

(17 Apr '11, 14:20) Flow

2 Answers:

11

The dumbutils plugin has this functionality, but it's going to be migrated into utilsplugin2

answered 20 Apr '11, 11:19

Flow's gravatar image

Flow
64641116
accept rate: 25%

edited 20 Apr '11, 17:23

The function is called "Paste Relations".

(06 Aug '13, 09:28) trapicki

Yes, utilsplugin2 can do the trick.

(14 Jul '20, 06:54) Plamen

3

Today (april 2011), there is no convenient way in JOSM to copy relations from an old way to a new one (like a keyboard shortcut). What I do personnaly if the amount of relations is significant is:
1. detach a small segment from the old way with all relations attached (e.g. insert 3 or 4 nodes, split and merge old way). JOSM will warn you about relations members duplicated into new segments but that's exactly what we want,
2. merge the small segment to the new way.
It sounds a bit complicated but it is faster than editing each relation using the relation editor (especially if you have more than one or two relations to copy).

answered 05 Apr '11, 16:20

Pieren's gravatar image

Pieren
9.8k2083157
accept rate: 15%

Source code available on GitHub .