Error opening SHP file in R using maptools readShapePoly

后端 未结 7 1977
别那么骄傲
别那么骄傲 2021-01-01 16:53

I am new to R and was following the following tutorial on the ggplot2 package found here. However the readShapePoly() function throws an error whenever I try to load the bas

相关标签:
7条回答
  • 2021-01-01 17:25

    I just managed to fix this problem with a shapefile I was trying to read by typing:

    file<- readShapeSpatial("filename.shp")
    

    instead of typing in the full file path.

    Before then, I tried all the suggestions, including making sure that the .dbf and .shx files were also present. Don't know why this should be the case.

    0 讨论(0)
提交回复
热议问题