This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Merge two different planet osm files

0

Hi, I am trying to merge two planet files which are North America OSM file and South America OSM file. I just need information whether two different planet files can be merged or not. As i came to know that different countries can be merged within same planet file. However, i need the other way around.

asked 30 Oct '18, 13:16

sumanosmxemplar's gravatar image

sumanosmxemplar
11112
accept rate: 0%

edited 30 Oct '18, 18:33

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


One Answer:

2

Yes, you can merge them with something like "osmosis". Here is an example script that, among other things, merges some OSM .pbf files together before loading a database with them.

This answer is marked "community wiki".

answered 30 Oct '18, 13:31

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

When i see your script, the two locations what you have merged are both from Europe. My case is different. I want North America and South America Planet files merge.

Is that possible?

(30 Oct '18, 13:40) sumanosmxemplar
1

Yes. Why not try it?

(30 Oct '18, 13:52) Richard ♦

Also, can i merge two bz2 files with osmosis?

(13 Nov '18, 14:36) sumanosmxemplar

Source code available on GitHub .