0

複数の osm.pbf ファイルをGeofrabikからマージしたい場合は、次のようにします:

最初に OSMCTOOLS をインストールします。

apt install osmctools

お好みの osm.pbf ファイルをダウンロードし、o5m ファイルに変換します

osmconvert argentina-latest.osm.pbf -o=argentina.o5m
osmconvert bolivia-latest.osm.pbf -o=bolivia.o5m
osmconvert chile-latest.osm.pbf -o=chile.o5m
osmconvert colombia-latest.osm.pbf -o=colombia.o5m
osmconvert ecuador-latest.osm.pbf -o=ecuador.o5m
osmconvert mexico-latest.osm.pbf -o=mexico.o5m
osmconvert paraguay-latest.osm.pbf -o=paraguay.o5m
osmconvert peru-latest.osm.pbf -o=peru.o5m
osmconvert uruguay-latest.osm.pbf -o=uruguay.o5m
osmconvert venezuela-latest.osm.pbf -o=venezuela.o5m
osmconvert haiti-and-domrep-latest.osm.pbf -o=domrep.o5m

次に、それらすべてを 1 つの o5m ファイルにマージします。

osmconvert argentina.o5m bolivia.o5m chile.o5m colombia.o5m domrep.o5m ecuador.o5m mexico.o5m paraguay.o5m peru.o5m uruguay.o5m venezuela.o5m -o=allcountries.o5m

次に、o5m ファイルを osm.pbf ファイルに変換します。

osmconvert allcountries.o5m -o=allcountries.osm.pbf

これで、Nomintim インポートで使用する 1 つの OSM.PBF ファイルができました。

nominatim import --osm-file path/to/allcountries.osm.pbf 2>&1 | tee setup.log
4

0 に答える 0