[Tile-serving] [openstreetmap/osm2pgsql] duplicate key error in slim mode (#16)

ReckyXXX notifications at github.com
Mon Feb 20 10:34:12 UTC 2017


You can import merged file as @iqqmuT  says, but it will dropped already loaded map-data in PostgreDatabase and start new import process.

On the other hand, you can substract already existing data from new region file using:
```
osmconvert new_region.pbf -o=new_region.o5m
osmconvert already_loaded_map.pbf -o=already_loaded_map.o5m
osmconvert new_region.o5m --subtract already_loaded_map.o5m -o=new_region_cleaned.o5m
osmconvert new_region_cleaned.o5m -o=new_region_cleaned.pbf
```
And then you can just append new file to PostgreSQL using:
`osm2pgsql --append ...  new_region_cleaned.pbf`
without duplicate key errors.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/16#issuecomment-281043730
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20170220/8289eb89/attachment.html>


More information about the Tile-serving mailing list