0

我正在尝试使用以下命令将 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 进行转换。

4

1 回答 1

3

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

于 2011-11-15T18:06:14.583 回答