Closed dominicroye closed 1 year ago
Hi, I'm having the same issue with multiple geojson urls. e.g.
africa_map <- gisco_get_countries(
year = "2020",
epsg = "4326",
resolution = "3",
region = "Africa", cache = TRUE, #update_cache = TRUE
)
url
https://gisco-services.ec.europa.eu/distribution/v2/countries/geojson/CNTR_RG_03M_2020_4326.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`
My solution so far would be the following:
url <- "https://gisco-services.ec.europa.eu/distribution/v2/nuts/geojson/NUTS_RG_03M_2016_4326_LEVL_3.geojson"
option(timeout = 1000)
limit <- sf::st_read(httr::GET(url))
I would have a look today, in the past I saw similiar issues due to changes on GISCO API see #57
Ping @hannesaddec (GISCO)
Also the case for world map. This code used to work:
> # fine line in WGS84
> world <- gisco_get_countries(resolution = "10",
+ epsg = 4326)
url
https://gisco-services.ec.europa.eu/distribution/v2/countries/geojson/CNTR_RG_10M_2016_4326.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`
> world
NULL
Following @dominicroye , this seems to be the manual approach:
world = sf::st_read(httr::GET("https://gisco-services.ec.europa.eu/distribution/v2/countries/geojson/CNTR_RG_10M_2020_4326.geojson"))
Thanks all for reporting, this should be fixed now after #70
Can you try with the dev version?
remotes::install_github("rOpenGov/giscoR")
world <- gisco_get_countries(resolution = "10", epsg = 4326)
Looking into it.. should be fixed now
I would have a look today, in the past I saw similiar issues due to changes on GISCO API see #57
Ping @hannesaddec (GISCO)
Hi, Working for me now thanks.
Thanks @hannesaddec @trifick
Note that there is a new version of giscoR on CRAN implementing also the solution proposed by @dominicroye
Everything should be working now with the CRAN version
ping also @pitkant in relation with https://github.com/rOpenGov/eurostat/issues/279
It seems that some geojson are not reachables, but it can be opened in a browser.