Closed nahin29 closed 6 months ago
Same for me
Thanks for reporting, I can't reproduce the issue right now, maybe it was a temporary error on the server side (it happens from time to time, see #57 and #69 )
Reprex, where downloading works as expected
library(giscoR)
cntries <- gisco_get_countries(
resolution = "01",
verbose = TRUE,
country = c("AL", "HR", "EL"),
cache_dir = tempdir(),
update_cache = TRUE
)
#>
#> Cache dir is /tmp/RtmpZJUYdk
#> Downloading from https://gisco-services.ec.europa.eu/distribution/v2/countries/distribution/AL-region-01m-4326-2016.geojson
#> Download succesful on
#>
#> /tmp/RtmpZJUYdk/AL-cntry-region-01m-4326-2016.geojson
#> Reading from local file /tmp/RtmpZJUYdk/AL-cntry-region-01m-4326-2016.geojson
#> 19.2 Kb
#> File loaded
#> Encoding characters
#>
#> Cache dir is /tmp/RtmpZJUYdk
#> Downloading from https://gisco-services.ec.europa.eu/distribution/v2/countries/distribution/HR-region-01m-4326-2016.geojson
#> Download succesful on
#>
#> /tmp/RtmpZJUYdk/HR-cntry-region-01m-4326-2016.geojson
#> Reading from local file /tmp/RtmpZJUYdk/HR-cntry-region-01m-4326-2016.geojson
#> 177.9 Kb
#> File loaded
#> Encoding characters
#>
#> Cache dir is /tmp/RtmpZJUYdk
#> Downloading from https://gisco-services.ec.europa.eu/distribution/v2/countries/distribution/EL-region-01m-4326-2016.geojson
#> Download succesful on
#>
#> /tmp/RtmpZJUYdk/EL-cntry-region-01m-4326-2016.geojson
#> Reading from local file /tmp/RtmpZJUYdk/EL-cntry-region-01m-4326-2016.geojson
#> 322.2 Kb
#> File loaded
#> Encoding characters
# Check
library(ggplot2)
ggplot(cntries) +
geom_sf(aes(fill = CNTR_ID))
Created on 2024-01-04 with reprex v2.0.2
Documented, would be solved with #80
url https://gisco-services.ec.europa.eu/distribution/v2/countries/distribution/AL-region-01m-4326-2016.geojson not reachable.
Please download manually. If you think this is a bug please consider opening an issue on https://github.com/ropengov/giscoR/issues Returning
NULL
Skipping unit = AL Not found Error: No results for c('AL')