将 Shapefile 导入 Postgres

发布于 2024-12-14 21:18:44 字数 348 浏览 4 评论 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 进行转换。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

陪你到最终 2024-12-21 21:18:44

如果没有任何额外信息,就无法回答您的问题。该错误消息表明应用程序未找到一个或多个文件组件。尝试使用相对路径在“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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文