prioritizr / wdpar

Interface to the World Database on Protected Areas
https://prioritizr.github.io/wdpar
GNU General Public License v3.0
37 stars 5 forks source link

Error when retrieving global WDPA dataset #31

Closed Louis-Backstrom closed 3 years ago

Louis-Backstrom commented 3 years ago

when running the latest dev version of the package, I get an error when trying to download the whole WDPA using the following code:

wdpa_global <- wdpa_fetch("global", wait = TRUE, download_dir = "~/Science/Data/GIS/WDPA - World", force_download = TRUE, verbose = TRUE)

Cannot open layer WDPA_poly_Dec2020 Error in CPL_read_ogr(dsn, layer, query, as.character(options), quiet, : Opening layer failed.

Curiously, however, the file appears to download (in full) into the designated directory (WDPA_Dec2020_Public.gdb.zip, ~1.35 GB) - so it's not a major problem, but figured worth bringing up.

jeffreyhanson commented 3 years ago

Hey @Louis-Backstrom, thank you very much for reporting this! I'll have a look later today and see if I can work out what's going wrong.

jeffreyhanson commented 3 years ago

Sorry for the delay @Louis-Backstrom, can you please try the GitHub version of wdpar now? It should work with the new version of the WPDA data.

Louis-Backstrom commented 3 years ago

All fixed by the looks of it - thanks @jeffreyhanson

jeffreyhanson commented 3 years ago

Awesome - great to hear - thanks!