将planet导入数据库时出现Osm2pgsql错误(Osm2pgsql error when importing planet into Database)

编程入门 行业动态 更新时间:2024-10-24 12:25:31
将planet导入数据库时出现Osm2pgsql错误(Osm2pgsql error when importing planet into Database)

一个月前我打开并将星球导入数据库但是我下载的行星版本出现了问题,不得不将其删除。 现在我已经下载了另一个版本的星球,当我尝试将其导入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.pbf

Then 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.

更多推荐

本文发布于:2023-07-08 19:55:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1080214.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   数据库   Osm2pgsql   planet   importing

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!