malariaAtlas icon indicating copy to clipboard operation
malariaAtlas copied to clipboard

Bug: shapefiles for the USA not loading properly

Open bertozzivill opened this issue 6 years ago • 4 comments

I use malariaAtlas in my example script for making custom accessibility surfaces. In the past, I've used the following getShp code to download a shapefile for Colorado state:

USA.shp <- malariaAtlas::getShp(ISO = "USA", admin_level = "admin1") analysis.shp <- USA.shp[USA.shp@data$name=="Colorado",]

Running this code now returns analysis.shp as a SpatialPolygonsDataFrame with 0 features, which makes sense because the @data field of USA.shp is no longer populated:

screen shot 2019-01-22 at 5 53 16 pm

The same is true for other non-malaria-endemic countries like Italy, but countries like Zambia and Vietnam load just fine. Are there now only subnational shapefiles available for endemic countries? Can we bring the non-endemic countries back?

bertozzivill avatar Jan 22 '19 18:01 bertozzivill