如何从 Osm with osmosis 到 mysql 获取包含城市名称、街道名称、建筑物编号、纬度和经度的地址列表。感谢 Postgres 提示。一般问题是关于获取此列表。
测试获取请求不起作用:
osmosis --read-pbf planet-latest.osm.pbf --write-apidb dbType="mysql"
host="localhost" database="planet8" user="user" password="password"
validateSchemaVersion=no
它给出了如下错误:
org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
SEVERE: Thread for task 1-read-pbf failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to insert user with id 485654 into the database.
我正在使用来自https://github.com/oschrenk/osmosis-mysql的 sql 转储,它看起来有点奇怪。不确定,它是否适合当前的需求。