[josm-dev] undelete plugin?

Toby Murray toby.murray at gmail.com
Wed Mar 20 14:03:26 UTC 2013


On Wed, Mar 20, 2013 at 6:50 AM, Martin Koppenhoefer
<dieterdreist at gmail.com> wrote:
> I tried to install the undelete plugin today but got this problem:
> "Could not load plugin undelete because the plugin main class
> 'org.openstreetmap.josm.plugins.undelete.Undelete' was not found.
> Delete from preferences?"
>
> Is this a bug or intentional? Is there an alternative solution to
> undelete nodes within JOSM?

Worked for me although the plugin doesn't seem to handle things when
the object has been changed by the redaction bot so some of the
historic versions are hidden.

> When I try to download the deleted node via the API I get the message
> that the node is deleted (yes, true), maybe there could be an option
> to get the previous version of this object? (OK, this would probably
> create a conflict on upload, so it would be a feature for advanced
> users who don't need the GUI anyway).

You can get previous versions of an object from the API. This is how
this plugin and the reverter plugin both work. See here:
http://wiki.openstreetmap.org/wiki/Api06#History:_GET_.2Fapi.2F0.6.2F.5Bnode.7Cway.7Crelation.5D.2F.23id.2Fhistory

Basically, you just add a version number to the end of the URL. Or
"/history" for the complete history. Version 10 of node 2:
http://api.openstreetmap.org/api/0.6/node/2/10

Of course the redaction bot makes things interesting again. If you
request a version of an object that was redacted, you will get a 403
response back. Change that 10 in the above URL to an 11 to see that in
action.

Toby



More information about the josm-dev mailing list