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

Removing inner relations

0

Is there a way to easily delete inner relations once an outer relation has been deleted in josm, keeping the properties of the inner relations.

asked 20 Nov '11, 19:50

nmixter's gravatar image

nmixter
1319913
accept rate: 0%


One Answer:

0

Not sure what you mean here. Relation members are easy enough to edit in the relations screen. Do you want to delete a relation, but transfer its tags back to the relation members ?

If that's what you want (are you sure ? relations are a good thing, think twice before deleting one), here's an option :

  • Select a relation, copy it (Ctrl+C)
  • Select a member, and paste tags (Ctrl_Shift+V)
  • Delete the relation
  • Edit/remove tags that have nothing to do in the relation member, like "type=route" for example
  • Copy the member (Ctrl+C), select the other members, and paste tags (Ctrl+Shif+V)

You may want to use a temporary object to edit the tags to be pasted, so that only the tags you want to paste are included.

answered 21 Nov '11, 10:05

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
17.3k18152249
accept rate: 19%

edited 21 Nov '11, 10:07

Source code available on GitHub .