【问题标题】:osm2pgsql error Trying to import .osm to postGis on AWSosm2pgsql 错误尝试将 .osm 导入 AWS 上的 postGis
【发布时间】:2017-06-14 18:24:55
【问题描述】:

我正在尝试使用 osm2pgsql 将 osm 数据导入 aws rds 实例。我收到一条错误消息 Osm2pgsql failed due to ERROR: Open failed for 'insights_poi': No such file or directory,但我提供了所有必要的文件。

在本地,我正在运行osm2pgsql -c -d insights_poi -U insights_poi -H beta.cyrrprcqeykj.us-east-1.rds.amazonaws.com -S default.style austin_texas.osm.pbf -W insights_poi -r .pbf

default.styleaustin_texas.osm.pbf 文件位于我运行此文件的同一文件夹中。为什么说找不到文件?

在我运行命令后它实际上变得很远

【问题讨论】:

    标签: openstreetmap osm2pgsql


    【解决方案1】:

    对于-W,文档指定了-w forces password prompt,我将其视为参数。所以错误Osm2pgsql failed due to ERROR: Open failed for 'insights_poi': No such file or directory-W insights_poi 的结果,因为在-W 之后没有任何预期,它将insights_poi 值视为那里不存在的文件的名称。

    最终做到了,osm2pgsql -c -d insights_poi -U insights_poi -H beta.cyrrprcqeykj.us-east-1.rds.amazonaws.com -r .pbf -S default.style -W austin_texas.osm.pbf

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-02-16
      • 1970-01-01
      • 2013-06-28
      • 2011-09-26
      • 1970-01-01
      • 2016-04-11
      • 2020-07-28
      • 2020-09-29
      相关资源
      最近更新 更多