<div dir="ltr">I just found a decent workflow that I can use to restore previous versions of these route relations.<div><br></div><div><a href="https://help.openstreetmap.org/questions/4019/how-do-i-restore-data-that-was-lost-during-editing">https://help.openstreetmap.org/questions/4019/how-do-i-restore-data-that-was-lost-during-editing</a></div><div><br></div><div>1. Use the API to download the last good version of the route relation, save as a .osm file.</div><div>2. Add action="modify" to the relation element in the OSM XML file</div><div>3. Load OSM XML file into JOSM</div><div>4. Download the relation by ID to get the latest version.</div><div>5. Handle conflicts by discarding the current relation and using the version that I loaded from the file.</div><div>6. Use the JOSM relation editor to download the members</div><div>7. Use the JOSM relation editor to "find the next gap"</div><div>8. Download current OSM data for the area with the gap and add appropriate members to the relation</div><div><br></div><div>Luckily, I saved a link to all of these bus routes on a wiki page as it's impossible to download a relation with zero members (unless you happen to know the ID):</div><div><a href="http://wiki.openstreetmap.org/wiki/Portland,_Oregon/Transit_Route_Relations">http://wiki.openstreetmap.org/wiki/Portland,_Oregon/Transit_Route_Relations</a></div><div><br></div><div>Peter<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 20, 2016 at 6:06 AM, Andy Townsend <span dir="ltr"><<a href="mailto:ajt1047@gmail.com" target="_blank">ajt1047@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="">On 20/05/2016 13:20, Arun Ganesh wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
Reverting the changesets are causing multiple conflicts and there does not seem to be a mechanism to just restore relation membership to a historical version. Any help and ideas appreciated<br>
<br>
[1] <a href="https://github.com/mapbox/mapping/issues/185" rel="noreferrer" target="_blank">https://github.com/mapbox/mapping/issues/185</a><br>
</blockquote>
<br></span>
If it helps, what I've done when things like this have happened in the past is:<br>
<br>
1) Edit failing OSC files to not include relation changes that cause problems - i.e. get all the ways and nodes in OSM how you want them.<br>
<br>
2) Find the "desired version" of the relation that you want to update, and try and apply that (e.g. via level0). It'll fail, so find out which ways don't exist, take them out of the relation details you're trying to upload and try again.<br>
<br>
3) Obviously now you'll have gaps in the relation - either fill them in manually if it's obvious, or figure out where the deleted ways that used to be in the relation were (by looking at undeleted nodes and the history of deleted nodes), and use that information to fill in gaps.<br>
<br>
As to "what caused it", there were examples of "relation contents being lost in JOSM uploads" a while back, but I've not heard reports of recent problems**, though there were reports of API upload slowness a few days ago (much discussed elsewhere - and in fact the message at the top of #osm still says "Ongoing server issues, sysadmins are on the case"). With any change in OSM it makes sense to double check the changes that you've made immediately after you've made them - did you really mean to make all changes in the resulting changeset? Are all relations intact? etc.<br>
<br>
Cheers,<br>
<br>
Andy<br>
<br>
PS: and FWIW I guessed that it was the Portland with the homelessness problem* and the nice river running through it, not the one with a crab fixation or the one that's scared of "underground mutton" :)<br>
<br>
* when I last visited, which was a while ago. They might have got their act together now.<br>
<br>
** The DWG often gets cries for help when big relations disappear<div class=""><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
Talk-us mailing list<br>
<a href="mailto:Talk-us@openstreetmap.org" target="_blank">Talk-us@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk-us" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/talk-us</a><br>
</div></div></blockquote></div><br></div></div></div>