NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum

Hello, i installed my own overpass API server. Today i only work with French country data and everything is ok. I would like to add the Canada but i don't know how to do that. I tried to merge two .osm files with osmconvert64 but i've got an error : unexpected end of file in france-latest.osm. Do you have a good method to do that ?

Thanks for all


asked 31 May '17, 08:10

mdk83's gravatar image

accept rate: 0%

Hello guys, sorry for my late answer but i couldn't test before. Thank you very much for your answer it works wonderfully !!

thank you for everything !


(01 Aug '17, 18:21) mdk83

Osmium can merge two OSM files: osmium merge file1.osm file2.osm -o merged.osm. Osmium can read and write any OSM file format. I recommend you use PBF format for best performance. Make sure to use files that are extracted from the same planet file (for instance Geofabrik extracts). Do not use files from different points in time, otherwise you might get wierd effects.

permanent link

answered 01 Jun '17, 06:58

Jochen%20Topf's gravatar image

Jochen Topf
accept rate: 31%

In your specific use case, you could also just import one file after another into the same directory, i.e. run

bunzip2 <$FIRST_FILE | $EXEC_DIR/bin/update_database --db-dir=$DB_DIR/ --meta
bunzip2 <$SECOND_FILE | $EXEC_DIR/bin/update_database --db-dir=$DB_DIR/ --meta

If there is conflicting data then the data from the last file wins.

permanent link

answered 02 Jun '17, 06:52

Roland%20Olbricht's gravatar image

Roland Olbricht
accept rate: 36%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 31 May '17, 08:10

question was seen: 3,393 times

last updated: 02 Aug '17, 07:42

NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum