OpenStreetMap

merging two data sources in osmosis

Posted by skorasaurus on 5 July 2011 in English (English)

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).

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.

Hide this comment

Leave a comment

Parsed with Markdown

  • Headings

    # Heading
    ## Subheading

  • Unordered list

    * First item
    * Second item

  • Ordered list

    1. First item
    2. Second item

  • Link

    [Text](URL)
  • Image

    ![Alt text](URL)

Login to leave a comment