NOTICE: help.openstreetmap.org is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum

JOSM: How to revert a relation?

I've a 10 month old changeset where I accidentally deleted all the tags from one of the relations. I wish to revert it.

First I downloaded the changeset using the 'revert changeset' command. I then selected the outer way & used File> Upload selection as recommended in the first bullet point: https://wiki.openstreetmap.org/wiki/JOSM/Plugins/Reverter#Partial_reverts

This only reverted the way by readding tags.

For the second attempt I downloaded using the 'revert changeset' command again. I 'Downloaded incomplete members' to ensure I had the inner way of the relation loaded. I selected the two ways making up the relation. I then used the revert changeset command's 'Revert selection only' option to upload those two ways.

As you can see, the revert re-added tags from four versions previous about 5 years ago!

https://www.openstreetmap.org/relation/2617907/history

I have no filters switched on.

How should I be preforming this action?

asked 18 Apr '23, 12:40

DaveF's gravatar image

DaveF
3.3k8498133
accept rate: 16%


The changeset you are reverting contains versions 5, 6 and 7 of that relation, so reverting the changeset is taking you back to version 4.

In this instance, if it were just the tags you wanted to restore, I'd have used File, Download Object, and downloaded the relation (with referrers and members), then used View History to compare the current version with the version you want, then on the tags from the old version highlight the tags you want to restore (ctrl-click) then right click to restore them (which will create a new version of the relation you can compare with). When happy, upload.

permanent link

answered 18 Apr '23, 15:48

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

Thanks, I'll do that. What's confused me is that i thought Potlatch didn't store different versions of an object in one changeset, but amalgamated any multiple saves into one version when the changeset was closed.

(18 Apr '23, 19:07) DaveF
Your answer
toggle preview

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:

×622
×236
×86

question asked: 18 Apr '23, 12:40

question was seen: 657 times

last updated: 18 Apr '23, 19:08

NOTICE: help.openstreetmap.org is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum