打开shapefile时出错 [英] Error when opening shapefile

查看:2378
本文介绍了打开shapefile时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在R中打开shapefile,但是我收到以下错误消息:

I am trying to open a shapefile in R, but I am getting the following error message:

Error in getinfo.shape(filen) : Error opening SHP file

我检查了其他回复,大多数问题似乎都是通过确保.dbf和.shx文件位于同一文件夹中来解决。我把它们都放在同一个文件夹中(以及其他一些扩展)但我仍然收到错误消息。我在Mac上工作。
这是我的代码:

I have checked other responses and most problems seem to have been solved by ensuring that the .dbf and .shx files are in the same folder. I have them all in the same folder (along with some other extensions too) but I still get the error message. I work on a mac. This is my code:

getinfo.shape("/Users/Suz/Desktop/DWH satellite maps/20100517_Composite.shp")

我试过没有 .shp 扩展名,以及其他命令,例如 readShapePoints 等。到目前为止,没有任何工作。请帮助,我是R的新手并制作地图,经过广泛的谷歌搜索和论坛阅读后,我仍然卡住了。

I have tried it without the .shp extension, and with other commands, such as readShapePoints etc. Nothing has worked so far. Please help, I am new to R and making maps, and after extensive Googling and forum-reading I am still stuck.

推荐答案

我刚遇到同样的问题。通常带有SHP文件的其他文件。如果它们丢失了,则无法加载文件。

I just had the same problem. Often come other files with your SHP-file. If they are missing the file cant be loaded.

因此搜索是否有任何其他文件扩展名。在源头上有20100517_Composite,你得到了你的文件。

So search if there are any other file ext. with "20100517_Composite" at the source you got your file.

但尚未发表评论,但我希望ppl节省时间,如果这是问题。

Cant comment yet but i wanted the ppl to save time, if this is the problem.

这篇关于打开shapefile时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆