NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

8
1

I was working on the Eastern end of the Stour Valley Path yesterday, and when I'd followed the footpath to just East of Bures, I found that there is another relation that has been created for the same long distance path. Is there an easy way to merge the two?

asked 04 Jan '11, 12:51

Rowland's gravatar image

Rowland
5967915
accept rate: 0%

2

Is there a way to merge relations in ID?

(23 Apr '18, 09:27) hkmwk
1

I think this is better done as a new question. The original question & answers here are rather old.

(23 Apr '18, 12:32) SK53 ♦

Using Potlatch 2, here's how you move all the ways from relation B to relation A. Note that both relations will need to have been loaded - in other words, you need to pan to an area that has both in.

  • Switch to Advanced view.
  • Select one of the ways in relation A.
  • Add it to relation B (using the 'Add to' button).
  • You should now have both relations showing in the Relations panel of the Advanced view.
  • In the dropdown menu to the right of relation B, choose 'Select all members'.
  • In the dropdown menu to the right of relation A, choose 'Add selection to this relation'.
  • Finally, select relation B, and click 'Remove from'.
permanent link

answered 04 Jan '11, 13:16

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

edited 18 Sep '11, 16:04

dieterdreist's gravatar image

dieterdreist
3.7k113567

1

That's not quite the same as merging the relations: You have moved all members from relation B to relation A, but B will remain as an empty relation, which is rather ugly and arguably incorrect. Unfortunately, you cannot delete relations in Potlatch2...

(20 Apr '11, 10:37) sleske

I refer the honourable gentleman to a separate question in which it's pointed out that you can't yet delete relations in P2 but that it'll be coming in a future version.

(20 Apr '11, 11:13) Richard ♦
1

Also, there is a potentially significant loss of data in this method in that the role of the member is not copied to the new relation. You have to check and copy the role, if any, manually, which makes this method very cumbersome.

(30 Apr '11, 15:33) monxton

In JOSM you open both relations for editing in the relation-editor (on the right, select the relation from the list and click on the icon with the sheet of paper, eventually you have to make the dialog visible by clicking on the left vertical icon list, cog wheel icon.).

  • select all elements of one relation in the relation editor (click on one element in the right column and hit ctrl+a)
  • select then these elements in the map editing window by clicking on the icon with the blue arrow pointing right in the Selection column
  • now go to the relation editor window of the other relation and add all selected elements.
  • eventually assign roles to the newly added elements
  • now delete the first relation
  • confirm the modifications by clicking on the OK button of the relation window
permanent link

answered 20 Apr '11, 11:26

dieterdreist's gravatar image

dieterdreist
3.7k113567
accept rate: 3%

edited 18 Sep '11, 16:07

Unfortunately roles are not transferred. Do you know how to copy them also?

(29 Oct '14, 07:17) Plamen
-4

It is possible and easy, if you know some XML. Download the relations as .osm files and merge them manually in a text editor.

permanent link

answered 07 Jan '11, 14:25

Kartograefin's gravatar image

Kartograefin
592178
accept rate: 0%

Of course you could do that (though many people's idea of "easy" is not "download an XML file and edit it"), but how would you upload the result?

(19 Apr '11, 09:18) sleske

If you really, really wanted to do it this way then I guess that you'd use http://rawedit.openstreetmap.fr/ to upload the new version of the one that you want to keep and delete the one that you don't.

Not that I'd recommend that when there are nice editors around that do the heavy lifting for you, mind.

(18 Sep '11, 23:25) SomeoneElse ♦

You can use JOSM to upload it.

(29 Oct '14, 10:11) dieterdreist

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×352
×236

question asked: 04 Jan '11, 12:51

question was seen: 15,231 times

last updated: 02 Nov '22, 09:14

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum