rspatial / terra

R package for spatial data handling https://rspatial.github.io/terra/reference/terra-package.html
GNU General Public License v3.0
537 stars 89 forks source link

plans for terra to integrate gdal 3.7+ to open rasters from ESRI filegeodatabase? #1428

Closed bpfree closed 8 months ago

bpfree commented 8 months ago

Curious if there are plans to have terra use gdal 3.7+ (which appears to support the functionality of opening a raster from an ESRI filegeodatabase.

Apologies if I missed something in a previous update, but it looks like the most up-to-date. When I check the gdal version of terra (1.7-17), it returns gdal version 3.5.3.

Perhaps is similar to the issue #1418 (GDAL installation)

> sessionInfo()

R version 4.3.2 (2023-10-31) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Sonoma 14.3.1

Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/New_York tzcode source: internal

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] lubridate_1.9.3 forcats_1.0.0 readr_2.1.5 tibble_3.2.1 tidyverse_2.0.0 tidyr_1.3.1 terra_1.7-71 stringr_1.5.1
[9] shadowr_0.0.2 sf_1.0-15 RSelenium_1.7.9 rnaturalearth_1.0.1 rmapshaper_0.5.0 rgeoda_0.0.10-4 digest_0.6.34 reshape2_1.4.4
[17] RColorBrewer_1.1-3 purrr_1.0.2 plyr_1.8.9 pdftools_3.4.0 paletteer_1.6.0 ncf_1.3-2 janitor_2.2.0 here_1.0.1
[25] ggplot2_3.4.4 fs_1.6.3 fasterize_1.0.5 elsa_1.1-28 raster_3.6-26 sp_2.1-3 dplyr_1.1.4 docxtractr_0.6.5
[33] pacman_0.5.1

loaded via a namespace (and not attached): [1] tidyselect_1.2.0 bitops_1.0-7 timechange_0.3.0 lifecycle_1.0.4 qpdf_1.3.2 semver_0.2.0 magrittr_2.0.3 compiler_4.3.2 rlang_1.1.3
[10] tools_4.3.2 utf8_1.2.4 askpass_1.2.0 classInt_0.4-10 curl_5.2.0 xml2_1.3.6 pkgload_1.3.4 KernSmooth_2.23-22 withr_3.0.0
[19] grid_4.3.2 fansi_1.0.6 caTools_1.18.2 e1071_1.7-14 colorspace_2.1-0 scales_1.3.0 cli_3.6.2 generics_0.1.3 rstudioapi_0.15.0 [28] httr_1.4.7 tzdb_0.4.0 sessioninfo_1.2.2 DBI_1.2.0 proxy_0.4-27 assertthat_0.2.1 vctrs_0.6.5 V8_4.4.1 jsonlite_1.8.8
[37] hms_1.1.3 binman_0.1.3 units_0.8-5 glue_1.7.0 rematch2_2.1.2 codetools_0.2-19 stringi_1.8.3 gtable_0.3.4 munsell_0.5.0
[46] pillar_1.9.0 R6_2.5.1 tcltk_4.3.2 rprojroot_2.0.4 lattice_0.22-5 snakecase_0.11.1 wdman_0.2.6 class_7.3-22 Rcpp_1.0.12
[55] pkgconfig_2.0.3

> terra::gdal()

[1] "3.5.3"

rhijmans commented 8 months ago

The GDAL version used is independent of "terra". It depends on what version you have installed (if you compile yourself) or on the version CRAN uses (if you install a compiled version from there). The CRAN windows version has

terra::gdal()
# [1] "3.7.2"

terra would generallt support new file formats automatically.