Hello everyone, I had successfully installed openstreetmap-website on Ubuntu 14.04. Now I'am trying to import a pbf file into the "openstreetmap" database using the following command:
but I still get this error:
Note: Osmosis Version is 0.40.1 I need your help please asked 16 Oct '15, 09:04 AYARI
showing 5 of 10
show 5 more comments
|
Does the full error message state which key is duplicated?
Yes, this is the full message :
Maybe the extract is broken, you could try a different extract. And/or a newer osmosis version (the latest version is 0.44.1) but a duplicated key or a duplicated node sounds weird.
I tried with another extract from geofabrik, but I always get the same error.
How can I install the latest osmosis version ?? apt-get always install 0.40.1
You have to download it yourself, unpack it and run it via
./osmosis-latest/bin/osmosis
(or whatever path you extracted it to).As an aside, it might be worth adding (or asking in another question) what you're planning to use a copy of the OSM website with Tunis data in it for - there might be an easier way to achieve what you're trying to do by some other method.
finally solved
I used the latest version of osmosis (0.44.1) and a ".bz2" osm file that I downloaded from geofabrik, now the import goes without any error.
But I still do not understand the issue
SomeoneElse :
I'am using Tunis data just for test, but I'am working on the whole planet database for map rendering, geocoding and routing..
If you're interested in rendering, geocoding and routing, then an APIDB may not be the way to go. For rendering in the same way as osm.org, see https://switch2osm.org/serving-tiles/ (though other renderers are available), for geocoding see http://wiki.openstreetmap.org/wiki/Nominatim/Installation (again, other geocoders exist), for routing perhaps some of the examples from http://wiki.openstreetmap.org/wiki/Routing#Developers .
According to changes.txt version 0.44.1 fixed an issue with "duplicate way nodes in pgsnapshot module" which could be the reason for your error. Or one of the many other fixes between version 0.40.1 and 0.44.1.