一个月前我打开并将星球导入数据库但是我下载的行星版本出现了问题,不得不将其删除。 现在我已经下载了另一个版本的星球,当我尝试将其导入postgresql数据库时,我收到以下错误。
我用来将文件导入数据库的命令是
osm2pgsql --slim -d gis -W -C 1500 --number-porcessess 3 ~/src/planet/planet.osm.pbf然后我收到此错误,我在行星目录中。 我按照http://switch2osm.org/serving-tiles/manually-building-a-tile-server-12-04/上的说明设置了此服务器。
Reading file : /planet-latest.osm.pbf Unable to open /planet-latest.osm.pbf Error occured,cleaning up.有没有其他人有这个问题。 所有帮助非常感谢。
I have opened and imported planet into the database just a month ago but there was a problem with the version of planet I downloaded and had to delete it. Now I have downloaded another version of planet and I am getting the following error when I try to import it into the postgresql database.
The command I used to import the file into the database is
osm2pgsql --slim -d gis -W -C 1500 --number-porcessess 3 ~/src/planet/planet.osm.pbfThen I get this error and I am in the planet directory. I followed the instructions from http://switch2osm.org/serving-tiles/manually-building-a-tile-server-12-04/ to set this server up.
Reading file : /planet-latest.osm.pbf Unable to open /planet-latest.osm.pbf Error occured,cleaning up.Has anyone else had this problem. All help greatly appreciated.
最满意答案
如果osm2pgsql无法打开pbf文件,那么你没有数据库问题,你有一个osm2pgsql问题。 看起来报告给您的文件的名称与您在命令行中放置的文件的名称不同,这可能是问题的线索。
If osm2pgsql can't open the pbf file, then you don't have a database problem, you have a osm2pgsql problem. It looks like the name of the file reported to you is not the same as the name of the file you put on your command line, perhaps that is a clue to the problem.
更多推荐
发布评论