我正在尝试使用以下方法将 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。
最佳答案
没有任何额外信息,就无法回答您的问题。错误消息表明应用程序未找到一个或多个文件组件。尝试使用相对路径在“location”目录中运行应用程序,看看是否有变化。
关于postgresql - 将 Shapefile 导入 Postgres,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8071796/