OpenStreetMap 标志 OpenStreetMap

merging two data sources in osmosis

skorasaurus 于 2011年七月 5日 以 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).

电子邮件图标 Bluesky图标 Facebook图标 LinkedIn图标 Mastodon图标 Telegram图标 X图标

讨论

JohnSmith2011年07月 6日 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.

登录以留下评论