Skip to content

Require minimum version of GDAL? #71

Closed
@Aariq

Description

@Aariq

Certain features (e.g. SOZip shapefile use by tar_terra_vect() with filetype = "ESRI Shapefile") require GDAL >= 3.7. However, that release was only about a year ago. Running tests on GDAL 3.0.4 gives the following:

Error (test-tar-terra.R:62:5): tar_terra_vect() works
<tar_condition_run/tar_condition_targets/rlang_error/error/condition>
Error: Error running targets::tar_make()
Error messages: targets::tar_meta(fields = error, complete_only = TRUE)
Debugging guide: https://books.ropensci.org/targets/debugging.html
How to ask for help: https://books.ropensci.org/targets/help.html
Last error message:
    the write() function in tar_format() must not create a directory. Found directories inside the data store where there should only be files: _targets/objects/test_terra_vect_shz

I think there are a few options:

  1. Require GDAL >= 3.7
  2. Check for GDAL >= 3.7 and error if older
  3. Check GDAL version and fallback to a different system when version requirement isn't met (e.g. using utils::zip() instead of the .shz extension)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions