Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CGAZ error #5

Open
Maschette opened this issue Dec 3, 2024 · 3 comments
Open

CGAZ error #5

Maschette opened this issue Dec 3, 2024 · 3 comments

Comments

@Maschette
Copy link

Hey,
Running some old code and it doesn't seem to work any more for CGAZ

> srccst <- sds::CGAZ()
> srcsql <- sds::CGAZ_sql("Australia")
> #reproject the shapefile into a local projection. 
> cst <- project(vect(srccst, query = srcsql), "EPSG:32755")
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'project': [vect] file does not exist: /vsizip//vsicurl/https://github.com/wmgeolab/geoBoundaries/raw/main/releaseData/CGAZ/geoBoundariesCGAZ_ADM0.zip
@mdsumner
Copy link
Member

mdsumner commented Dec 3, 2024

what os, and what's the gdal version?

terra::gdal()
sessionInfo()

@Maschette
Copy link
Author

Sorry should have included those.

library(terra)
#> terra 1.7.78

srccst <- sds::CGAZ()
srcsql <- sds::CGAZ_sql("Australia")
 #reproject the shapefile into a local projection. 
cst <- project(vect(srccst, query = srcsql), "EPSG:32755")
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'project': [vect] file does not exist: /vsizip//vsicurl/https://github.com/wmgeolab/geoBoundaries/raw/main/releaseData/CGAZ/geoBoundariesCGAZ_ADM0.zip

gdal()
#> [1] "3.8.4"
sessionInfo()
#> R version 4.4.1 (2024-06-14 ucrt)
#> Platform: x86_64-w64-mingw32/x64
#> Running under: Windows 10 x64 (build 19045)
#> 
#> Matrix products: default
#> 
#> 
#> locale:
#> [1] LC_COLLATE=English_Australia.utf8  LC_CTYPE=English_Australia.utf8   
#> [3] LC_MONETARY=English_Australia.utf8 LC_NUMERIC=C                      
#> [5] LC_TIME=English_Australia.utf8    
#> 
#> time zone: Australia/Hobart
#> tzcode source: internal
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> other attached packages:
#> [1] terra_1.7-78
#> 
#> loaded via a namespace (and not attached):
#>  [1] digest_0.6.37     codetools_0.2-20  fastmap_1.2.0     xfun_0.48        
#>  [5] sds_0.0.1.9006    glue_1.8.0        knitr_1.48        htmltools_0.5.8.1
#>  [9] rmarkdown_2.28    lifecycle_1.0.4   cli_3.6.3         countrycode_1.6.0
#> [13] reprex_2.1.1      withr_3.0.2       compiler_4.4.1    rstudioapi_0.16.0
#> [17] tools_4.4.1       evaluate_1.0.1    Rcpp_1.0.13       yaml_2.3.10      
#> [21] rlang_1.1.4       fs_1.6.4

Created on 2024-12-03 with reprex v2.1.1

@mdsumner
Copy link
Member

mdsumner commented Dec 3, 2024

That definitely should work.
Maybe a connection or network problem ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants