如何解决合并来自 Geofrabik 的多个 PBF 文件以在 Nominatim 中使用
如果您想合并来自 Geofrabik 的多个 osm.pbf 文件,您可以这样做:
首先安装 OSMCTOOLS:
apt install osmctools
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
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
osmconvert allcountries.o5m -o=allcountries.osm.pbf
现在您有一个 OSM.PBF 文件可用于 Nominatim 导入
nominatim import --osm-file path/to/allcountries.osm.pbf 2>&1 | tee setup.log
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。