【问题标题】:Import Shapefile to Postgres将 Shapefile 导入 Postgres
【发布时间】:2011-12-25 16:29:27
【问题描述】:

我正在尝试使用以下命令将 shapefile 导入 Postgres:

shp2pgsql c:\location\water_areas.shp water > water.sql

我收到以下消息:

c:\location\water_areas.shp: shape (.shp) or index file (.shx) can not be opened, will just import attribute data.

不幸的是,我需要的不仅仅是属性数据。我需要几何列。请帮忙。为什么它不会打开 shapefile 进行转换。

【问题讨论】:

标签: postgresql import postgis shapefile


【解决方案1】:

没有任何额外信息,就无法回答您的问题。错误消息表明应用程序未找到一个或多个文件组件。尝试使用相对路径在“位置”目录中运行应用程序,看看是否会发生变化。

【讨论】:

    猜你喜欢
    • 2018-06-11
    • 1970-01-01
    • 2015-04-28
    • 2012-02-22
    • 2012-06-21
    • 1970-01-01
    • 1970-01-01
    • 2013-08-03
    • 2012-04-28
    相关资源
    最近更新 更多