Accéder au contenu.
Menu Sympa

overpass - [overpass] Re: error after history import

Objet : Overpass API developpement

Archives de la liste

[overpass] Re: error after history import


Chronologique Discussions 
  • From: mmd <>
  • To:
  • Subject: [overpass] Re: error after history import
  • Date: Wed, 4 Nov 2015 23:08:55 +0100



Hi,

I tried the following now: (overpass version 0.7.54_mmd, my branch).

Step 1:

osmium time-filter -o swiss.osm.pbf switzerland-padded-softcut.osh.pbf
2015-08-01T00:00:00Z

Step 2:

osmconvert ~/Downloads/swiss.osm.pbf --out-osm |
~/osm-3s-patch-version/build/bin/update_database --db-dir=`pwd` --meta
> /dev/null

Step 3:

run dispatcher

./dispatcher --osm-base --attic --db-dir=/mnt/btrfs/dbswiss

Step 4:

for i in $( ls down/*.osc.gz ); do gunzip -c $i |
~/osm-3s-patch-version/build/bin/update_database --keep-attic
--flush-size=0 ; done ;

(Starts with 20/173.osc.gz)

Unfortunately this crashes with:

====================[start]=====================

Reading XML file ... finished reading nodes. Flushing to database ......
done.
Reading XML file ... finished reading ways. Node 3670846715 used in way
8092593 not found.
[...]
Flushing to database ......Node 3670846715 used in way 8092593 not found.
Node 3670846715 used in way 8092593 not found.
[...]
[...]
Node 3670846715 used in way 8092593 not found.
[...]
done.
Flushing to database ....... done.
Update complete.
Reading XML file ... finished reading nodes. Flushing to database ......
done.
Reading XML file ... finished reading ways. Flushing to database
......terminate called after throwing an instance of 'std::logic_error'
what(): Bad geometry for way 8092593
Abgebrochen (Speicherabzug geschrieben)

====================[end]=======================


I wonder why node 3670846715 is not included in
switzerland-padded-softcut.osh.pbf, so that way 8092593 references an
non-existant node (->geometry error).

According to OSM main page, this node should be in Switzerland:

http://www.openstreetmap.org/node/3670846715/history

Did I miss something here? Do you see the same effect on your end? To me
this looks a bit like some 64bit issue. I'm using osmconvert 0.8.4 and
the latest osmium tools.

./osmconvert switzerland-padded-softcut.osh.pbf --out-osh | grep
"3670846715"

-> no result!



--














Archives gérées par MHonArc 2.6.18.

Haut de le page