OpenStreetMap 로고 OpenStreetMap

merging two data sources in osmosis

skorasaurus님이 English로 2011년 7월 5일에 게시함.

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 아이콘 마스토돈 아이콘 텔레그램 아이콘 X 아이콘

토론

2011년 7월 6일 04:32JohnSmith님의 의견

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.

댓글을 남기려면 로그인하세요