So as adviced, I merged several files with osmium, to update the whole database together, instead of doing --append, and after I tried to import the resulting file into the database, I got this error: Processing: Node(1255048k 1457.7k/s) Way(156069k 11.50k/s) Relation(0 0.00/s)result COPY END for planet_osm_ways failed: ERROR: duplicate key value violates unique constraint "planet_osm_ways_pkey" DETAIL: Key (id)=(23535867) already exists. CONTEXT: COPY planet_osm_ways, line 119375 DB copy thread failed: Ending COPY mode It appears that osmium can't handle overlapping nodes. The worst part of this is that I had to wait 4 hours to discover this. The question is, how to merge several pbf files so that overlapping tiles are correctly handled? So that I can finally load the map? AND WHY RUSSIA IN THE COMPLETE ASIA MAPS IS MISSING HALF ITS TERRITORY (THOUGH IF YOU OPOEN ASIA LISTING ALL ITS TERRITORY IS SHOWED AS BEING INCLUDED)? P.S. @(6 mins ago)SK53 I have no doubt that there must be some magical incantation to make osmosis work. Like in all things. It's just that a straightforward "osmium merge ./asia-latest.osm.pbf ./northwestern-fed-district-latest.osm.pbf ./central-fed-district-latest.osm.pbf -o merged.pbf" yielded and invalid result. The whole point of question is to find somebody knowledgable enough to identify the issue. It sucks though that people got so sensitive, like it is not the internet anymore. asked 05 Mar '20, 07:57 kartman1 |
Yeah, nice minuses. Good thing you can just crap on somebody and walk away feeling smart.+ Guess you are too chicken to at least show your name.
People here are helpful but they're not going to help someone who keeps shouting and yelling. If you can ask your questions calmly and without pejorative language like "the worst part is", then you're more likely to get answers and not downvotes.
I can only advise re-evaluating the attitude which you are expressing in your text. I think you have been hinted this before in one of your previous questions. If you like people taking their time for you and getting serious responses it does not help to shout (text in capitals), demand, use words like wtf and OMG, or make totally unrelated and accusing comments to other peoples' questions. There are a lot of folks here who are eager to help and promote the use of OSM but they are doing that for their own good and in their spare time. Stick to the rules/etiquette and you get helped.
And btw: nobody is hiding anything. You can see the votes in your profile.
@kartman1 : your general tone is not suitable for this forum. Consider that osmosis has been in use for well over a decade for this very purpose: it just might be you that are in error not the programme.
(to second what SK53 said earlier about osmosis) https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/update_render.sh is the script that I use to load data for https://map.atownsend.org.uk/ and similar sites. I've just tested that it doesn't have a problem by using it to load both ends of the ferry route that ends at https://www.openstreetmap.org/node/4342493001 together. That node is in both files, and no error occurs/