postgresql - 将 Shapefile 导入 Postgres

标签 postgresql import postgis shapefile

我正在尝试使用以下方法将 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/

相关文章:

python - 一次性导入所有子模块

Python "import"作用域

geometry - st_isvalid 和 st_issimple 有什么区别?

arrays - 比较数组是否相等,忽略元素的顺序

postgresql - POSTGIS - 从另一个表更新表

cocoa - 自定义 Cocoa 框架以及使用它的问题

javascript - 使用 Leafletjs 显示 PostGIS 数据

postgresql - 如何在postGIS中找到重叠点

mysql - 将 MySQL View 转换为 Postgres

postgresql - 临时表的问题