Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem merging and then importing two OSM files. I downloaded to distinct .osm-files from cloudmade. They are not sharing any geographical attribute (as the first is the country Monaco, the 2nd is the county Bremen in Germany).

I merged the with OSMOSIS and it gives me an output file.

Then I import it via OSM2PGSQL.

Looking at the dataset using QGIS it either shows me the data of Bremen or Monaco (depending the order in the OSMOSIS merge statement).

Does anyone has a solution for this problem?

Thanks a lot Carsten

share|improve this question
Do you try FME Desktop ? – user3120 Feb 13 '13 at 15:38
I do not have FME but GeoKettle. Do you know how it works? – hoge6b01 Feb 13 '13 at 19:32
up vote 1 down vote accepted

There might be a problem with your osmosis command, specially that you say you get different results when you change the order. How did you write that?

You don't necessarily have to merge those two files to import both in your database. Import the first one, and for the second, use OSM2PGSQL --append switch to append it to the current database.

If you insist on merging osm files, you can also use OSMConvert instead:

osmconvert 1.osm 2.osm -o=merged.osm
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.