malariaAtlas
malariaAtlas copied to clipboard
Bug: shapefiles for the USA not loading properly
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:

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?