dimanche 12 février 2017

In the tmaptools package, read_shape yields "layer not found" error

Vote count: 0

I've used the read_shape function from the tmaptools package to import shapefiles many times successfully, but I've now encountered a strange error.

For some shapefiles the read_shape command yields message: "Error in ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv, : Layer not found"

For other shapefiles, I have no problem at all. Here is an example of an open data shapefile for which I am getting this error: http://ift.tt/2kl3Thm

I believe the error may be related to the tmap package because I am able to open the shapefiles in question with no issues in QGIS. I'm running the current versions of RStudio, tmap, and tmaptools.

Any ideas?

asked 13 secs ago

Let's block ads! (Why?)



In the tmaptools package, read_shape yields "layer not found" error

Aucun commentaire:

Enregistrer un commentaire