将 Shapefile 导入 Postgres
我正在尝试使用以下命令将 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 进行转换。
I am trying to import a shapefile to Postgres using the following:
shp2pgsql c:\location\water_areas.shp water > water.sql
I am receiving the following message:
c:\location\water_areas.shp: shape (.shp) or index file (.shx) can not be opened, will just import attribute data.
Unfortunately I need more than just attribute data. I need the geometry column. Please help. Why won't it open the shapefile for the conversion.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果没有任何额外信息,就无法回答您的问题。该错误消息表明应用程序未找到一个或多个文件组件。尝试使用相对路径在“location”目录中运行应用程序,看看是否会发生变化。
Without any extra information, there's no way to answer your question. The error message is indicating the app is not finding one or more of the file components. Try running the app inside the 'location' directory with a relative path and see if that changes.