Open kalegoddess opened 3 months ago
Same issue here.
countries <- gisco_get_countries(country = countries_names, year = "2020", resolution = "01")
When i try to run this code for the 28 countries in my country_names vector, the same error as above arises for three countries (China, India and United Kingdom).
Same issue here: nuts0 <- giscoR::gisco_get_nuts( year = "2021", resolution = "3", nuts_level = "0" ) %>% sf::st_transform(crsLONGLAT)
HTTP Status Code: 503 - Service Unavailable
url https://gisco-services.ec.europa.eu/distribution/v2/nuts/geojson/NUTS_RG_03M_2021_4326_LEVL_0.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
Error in UseMethod("st_transform") :
no applicable method for 'st_transform' applied to an object of class "NULL"
same here.
I have the same issue. Does anyone know a workaround?
Sometimes these errors are from the server side, not from the package itself.
I think it is solved now, can you confirm?
Reprex:
library(giscoR)
library(dplyr)
@kalegoddess
gisco_get_countries(
year = 2020, resolution = 10,
epsg = 4326, cache_dir = tempdir()
)
#> Simple feature collection with 257 features and 11 fields
#> Geometry type: MULTIPOLYGON
#> Dimension: XY
#> Bounding box: xmin: -180 ymin: -89.9 xmax: 180 ymax: 83.65872
#> Geodetic CRS: WGS 84
#> First 10 features:
#> CNTR_ID NAME_GERM CNTR_NAME
#> 1 AD Andorra Andorra
#> 2 AE Vereinigten Arabischen Emirate الإمارات العربية المتحدة
#> 3 AF Afghanistan افغانستان-افغانستان
#> 4 AG Antigua und Barbuda Antigua and Barbuda
#> 5 AI Anguilla Anguilla
#> 6 AL Albanien Shqipëria
#> 7 AM Armenien Հայաստան
#> 8 AO Angola Angola
#> 9 AR Argentinien Argentina
#> 10 AS Amerikanisch-Samoa American Samoa-Sāmoa Amelika
#> ISO3_CODE CAPT NAME_ENGL NAME_FREN
#> 1 AND Andorra la Vella Andorra Andorre
#> 2 ARE Abu Dhabi United Arab Emirates Émirats arabes unis
#> 3 AFG Kabul Afghanistan Afghanistan
#> 4 ATG St John's Antigua and Barbuda Antigua-et-Barbuda
#> 5 AIA The Valley Anguilla Anguilla
#> 6 ALB Tirana Albania Albanie
#> 7 ARM Yerevan Armenia Arménie
#> 8 AGO Luanda Angola Angola
#> 9 ARG Buenos Aires Argentina Argentine
#> 10 ASM Pago Pago American Samoa Samoa américaines
#> SVRG_UN EU_STAT CC_STAT EFTA_STAT
#> 1 UN Member State F F F
#> 2 UN Member State F F F
#> 3 UN Member State F F F
#> 4 UN Member State F F F
#> 5 UK Non-Self-Governing Territory F F F
#> 6 UN Member State F T F
#> 7 UN Member State F F F
#> 8 UN Member State F F F
#> 9 UN Member State F F F
#> 10 US Non-Self-Governing Territory F F F
#> geometry
#> 1 MULTIPOLYGON (((1.53521 42....
#> 2 MULTIPOLYGON (((56.1464 25....
#> 3 MULTIPOLYGON (((71.28622 38...
#> 4 MULTIPOLYGON (((-61.70749 1...
#> 5 MULTIPOLYGON (((-63.08349 1...
#> 6 MULTIPOLYGON (((19.75862 42...
#> 7 MULTIPOLYGON (((44.94132 41...
#> 8 MULTIPOLYGON (((13.47062 -5...
#> 9 MULTIPOLYGON (((-66.04926 -...
#> 10 MULTIPOLYGON (((-169.4544 -...
@joelangley9
countries_names <- c("China", "India", "United Kingdom")
gisco_get_countries(
country = countries_names, year = "2020",
resolution = "01",
cache_dir = tempdir()
)
#> Simple feature collection with 3 features and 11 fields
#> Geometry type: MULTIPOLYGON
#> Dimension: XY
#> Bounding box: xmin: -8.647188 ymin: 6.755997 xmax: 134.7797 ymax: 60.84522
#> Geodetic CRS: WGS 84
#> ISO3_CODE CAPT CNTR_NAME CNTR_ID NAME_GERM CC_STAT
#> 1 CHN Beijing 中國 CN China F
#> 2 IND New Delhi India-भारत IN Indien F
#> 3 GBR London United Kingdom UK Vereinigtes Königreich F
#> EU_STAT NAME_ENGL EFTA_STAT SVRG_UN NAME_FREN
#> 1 F China F UN Member State Chine
#> 2 F India F UN Member State Inde
#> 3 F United Kingdom F UN Member State Royaume-Uni
#> geometry
#> 1 MULTIPOLYGON (((123.4666 53...
#> 2 MULTIPOLYGON (((91.93828 23...
#> 3 MULTIPOLYGON (((-3.40836 58...
@pradisteph
giscoR::gisco_get_nuts(
year = "2021", resolution = "3",
nuts_level = "0", cache_dir = tempdir()
) %>%
sf::st_transform(4326)
#> Simple feature collection with 37 features and 9 fields
#> Geometry type: MULTIPOLYGON
#> Dimension: XY
#> Bounding box: xmin: -63.15176 ymin: -21.38696 xmax: 55.83509 ymax: 80.83427
#> Geodetic CRS: WGS 84
#> First 10 features:
#> NUTS_ID LEVL_CODE URBN_TYPE CNTR_CODE NAME_LATN
#> 1 BG 0 0 BG Bulgaria
#> 2 CH 0 0 CH Schweiz/Suisse/Svizzera
#> 3 AL 0 0 AL Shqipëria
#> 4 CZ 0 0 CZ Česko
#> 5 BE 0 0 BE Belgique/België
#> 6 AT 0 0 AT Österreich
#> 7 DE 0 0 DE Deutschland
#> 8 CY 0 0 CY Kýpros
#> 9 DK 0 0 DK Danmark
#> 10 EE 0 0 EE Eesti
#> NUTS_NAME MOUNT_TYPE COAST_TYPE geo
#> 1 България 0 0 BG
#> 2 Schweiz/Suisse/Svizzera 0 0 CH
#> 3 Shqipëria 0 0 AL
#> 4 Česko 0 0 CZ
#> 5 Belgique/België 0 0 BE
#> 6 Österreich 0 0 AT
#> 7 Deutschland 0 0 DE
#> 8 Κύπρος 0 0 CY
#> 9 Danmark 0 0 DK
#> 10 Eesti 0 0 EE
#> geometry
#> 1 MULTIPOLYGON (((22.97854 43...
#> 2 MULTIPOLYGON (((8.567406 47...
#> 3 MULTIPOLYGON (((19.75089 42...
#> 4 MULTIPOLYGON (((14.37233 51...
#> 5 MULTIPOLYGON (((4.83904 51....
#> 6 MULTIPOLYGON (((15.14986 48...
#> 7 MULTIPOLYGON (((8.635926 54...
#> 8 MULTIPOLYGON (((33.77666 34...
#> 9 MULTIPOLYGON (((15.19441 55...
#> 10 MULTIPOLYGON (((25.77586 59...
Created on 2024-09-23 with reprex v2.1.1
It works for me now, yeah. Thanks!
I have the same issue as of today:
geodata <- get_eurostat_geospatial(nuts_level = 2, year = 2021)
Extracting data using giscoR package, please report issues on https://github.com/rOpenGov/giscoR/issues
Cache management as per giscoR. see 'giscoR::gisco_get_nuts()'
HTTP Status Code: 503 - Service Unavailable
url
https://gisco-services.ec.europa.eu/distribution/v2/nuts/geojson/NUTS_RG_60M_2021_4326_LEVL_2.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`
I have the same issue as of today with accessing nuts3 level information
> nuts3<-data.table(gisco_get_nuts(nuts_level=3,year="2003"))
> HTTP Status Code: 503 - Service Unavailable
>
> url
> https://gisco-services.ec.europa.eu/distribution/v2/nuts/geojson/NUTS_RG_20M_2003_4326_LEVL_3.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`
Attempts to use gisco_get_countries to get a world shape return this error:
HTTP Status Code: 503 - Service Unavailable
url https://gisco-services.ec.europa.eu/distribution/v2/countries/geojson/CNTR_RG_10M_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