2008/2/6 Steven te Brinke <[EMAIL PROTECTED]>:
>
>  I've found some missing nodes too and like to fix the problem. Is there an
> easy way to undelete them?

Basically, you just need to download them and upload them again. If
you have SVN checked out the following program takes a list of node
IDs and resurrects them.

Have a nice day,
-- 
Martijn van Oosterhout <[EMAIL PROTECTED]> http://svana.org/kleptog/
#!/usr/bin/perl -w
use strict;
use lib '/home/kleptog/osm/svn/svn.openstreetmap.org/applications/utils/perl_lib/';
use Geo::OSM::APIClientV5;

my $uploader = new Geo::OSM::APIClient( api => 'http://www.openstreetmap.org/api/0.5/', username => 'username', password=>'password' );

my @nodes = grep { /^\d+$/ } @ARGV;

if( scalar(@nodes) != scalar(@ARGV) )
{
  die "Unexpected commandline\n";
}

if( scalar(@nodes) < 1 )
{
  die "Not enough nodes\n";
}

my %hash;

for my $node (@nodes)
{
  $uploader->resurrect( 'node', $node );
  
}

_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev

Reply via email to