Лягатып OpenStreetMap OpenStreetMap

merging two data sources in osmosis

Дасланы skorasaurus 5 Ліпень 2011 на 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).

Email icon Bluesky Icon Facebook Icon LinkedIn Icon Mastodon Icon Telegram Icon X Icon

Абмеркаванне

Камэнтар JohnSmith ад 6 Ліпень 2011 у 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.

Увайдзіце каб пакінуць камэнтар