Skip to content

CRAN release 0.4.0

Latest

Choose a tag to compare

@brownag brownag released this 02 Feb 07:50
· 15 commits to main since this release
fcee7d1

rgeedim 0.4.0

  • Support for geedim v2.0.0 and earthengine-api v1.7+

    • Updated API calls to use ee.Image.gd and ee.ImageCollection.gd accessors
    • Fixed gd_collection_from_list() to correctly extract underlying ee.Image from geedim 2.0 accessor objects
    • gd_initialize() now defaults to credentials = NULL, using Application Default Credentials (ADC) by default
    • gd_properties() now correctly returns the full image ID (including collection path) for geedim 2.0.0+, fixing an issue where only the asset name was returned.
    • Fix for gd_export() when geedim >= 2.0.0 where passing overwrite argument caused a TypeError.
    • Consistent use of ee.Geometry for region argument in gd_search(), gd_composite(), and gd_download() when geedim >= 2.0.0.
  • Authentication and Headless Support

    • Standardized on GOOGLE_CLOUD_QUOTA_PROJECT environment variable for automatic project ID detection in gd_initialize()
    • gd_initialize(private_key_file=...) parameter and EE_SERVICE_ACC_PRIVATE_KEY environment variable are deprecated in favor of standard GOOGLE_APPLICATION_CREDENTIALS
    • gd_authenticate() and gd_initialize() now support authentication in headless environments (e.g. CI/CD, Workload Identity Federation)
    • Updated all vignettes and examples to use gd_is_initialized() and environment variable R_RGEEDIM_RUN_EXAMPLES for conditional evaluation
  • gd_region() and gd_region_to_vect() improvements

    • gd_region() now correctly handles SpatVector objects with MultiPolygon geometries or holes by leveraging terra::writeVector(..., filetype="GeoJSON")
    • Using Python's native json module (via reticulate) for dependency-light GeoJSON serialization and parsing
    • gd_region_to_vect() now supports complex GeoJSON-like lists, including GeometryCollection

rgeedim 0.2.8

  • With reticulate >= 1.41.0 call py_require(c("earthengine-api" , "geedim")) on load

  • Default Python virtual environment name changed from "r-reticulate" to "r-rgeedim"

    • Use gd_install() to initialize a new environment if needed.
  • gd_projection(): update for earthengine-api usage of ee.projection.Projection class

  • Replace use of knitr + rmarkdown with litedown for readme/vignette building

What's Changed

Full Changelog: 0.2.7...0.4.0