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

Adds GDAL min version requirement for writing .shz #97

Merged
merged 4 commits into from
Oct 11, 2024
Merged

Conversation

Aariq
Copy link
Collaborator

@Aariq Aariq commented Sep 12, 2024

Closes #71 by adding a check for GDAL 3.1 or greater. Not sure if there is a way to write a test for this

@njtierney
Copy link
Owner

@Aariq I can make these changes to the tests if you like?

@Aariq
Copy link
Collaborator Author

Aariq commented Sep 19, 2024

@Aariq I can make these changes to the tests if you like?

Sure, if you've got an idea of how to mock different GDAL versions, go for it!

…rsion of GDAL.

* check_gdal_version()
* check_gdal_shz()
* with_local_mock() functions as well
@njtierney
Copy link
Owner

I think this should work! I got a bunch of failing tests locally but I'm curious to see how this goes on CI here. Happy for you to merge if you like it :)

R/utils.R Outdated Show resolved Hide resolved
R/utils.R Outdated Show resolved Hide resolved
@Aariq
Copy link
Collaborator Author

Aariq commented Oct 11, 2024

Ended up going with a simpler wrapper that does less, gdal_version(), instead of check_gdal_version(). DId not know about local_mocked_bindings() before! Thanks for that!

@Aariq Aariq merged commit 44c0640 into master Oct 11, 2024
7 checks passed
@Aariq Aariq deleted the gdal-req-shz branch October 11, 2024 18:25
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

Successfully merging this pull request may close these issues.

Require minimum version of GDAL?
2 participants