NOTICE: help.openstreetmap.org is no longer in use from 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

Mathieu

asked 31 May '17, 08:10

mdk83's gravatar image

mdk83
25224
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 !

Mathieu

(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
5.2k55074
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
6.7k36489
accept rate: 36%

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×54

question asked: 31 May '17, 08:10

question was seen: 3,767 times

last updated: 02 Aug '17, 07:42

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum