OpenStreetMap

In a nutshell, I'm trying to merge two .OSM files. One of them consists of only administrative boundaries and the other consists of a bunch of data (motorways) without any administrative boundaries.

I plan to merge the two files together.

Here's the osmosis command that I was using:
osmosis --read-xml largermessedbaroundaries.osm --read-xml boundariesonly.osm --merge conflictResolutionMethod=lastSource --write-xml boundariesrestored.osm

(I realize that I misspelled boundaries in one of the files' names but have decided to not rename it for consistency).

Discussion

Comment from JohnSmith on 6 July 2011 at 04:32

if you created the osm files from shape files you might do better merging the shapefiles and then using something like ogr2osm, although ogr2osm doesn't handle multipolygons very well or at all.

Log in to leave a comment