I have some issues while i try to append new country (Ukraine) to already imported one (US). First I created db with US OSM data:
Then I tried to append ukraine.osm.bz2:
And received:
Files with countries were taken from download.cloudmade.com What is wrong in my actions and is there any way to import 2 countries information into DB? asked 26 May '11, 12:57 bestic2 |
The relation in your error message is the border of the Russian Federation: http://www.openstreetmap.org/browse/relation/60189 which shares ways such as http://www.openstreetmap.org/browse/way/50752242 with the border of the USA. I am not an expert, but suspect you might need to use Osmosis to merge the two files first and then import using osm2pgsql in one go. answered 26 May '11, 13:49 EdLoach ♦ 1
Thanks! It's really 1 common relation between 2 countries - 60189 id in planet_rels. I temporary dropped constraint before appending and all goes well
(26 May '11, 15:43)
bestic2
Can both of you please share ways how to do this (@EdLoach how to use Osmosis for that, bestic2 how to temporarily drop the constraints)? I’ve got similar issues…
(24 Jan '15, 21:23)
mirabilos
|
Use osmconvert. You have 2 choices: 1) Merge new region file with existing map file:
and then load merged file to postgreSQL with cleaning database:
2) Or separate already existing data from new region file using:
And then you can just append new file to PostgreSQL using:
answered 20 Feb '17, 10:18 ReckyXXX |