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

test_gdal_compliant_grid_crs fails with rasterio 1.4 #1253

Open
JoerivanEngelen opened this issue Oct 23, 2024 · 1 comment
Open

test_gdal_compliant_grid_crs fails with rasterio 1.4 #1253

JoerivanEngelen opened this issue Oct 23, 2024 · 1 comment

Comments

@JoerivanEngelen
Copy link
Contributor

In this giant merge of the imod5 feature branch (#1252), I updated our pixi lockfile and 2 tests failed.

One I could fix, but test_gdal_compliant_grid_crs fails with rasterio 1.4 causes a failure. For some reason:

test_gdal_compliant_grid_crs(tmpdir)
...
    da_read = rioxarray.open_rasterio(str(tmpdir / "gdal_accepted_grid.nc"))
    assert da_read.rio.crs == "EPSG:28992"
...

Gives an AssertionError, as the crs attribute equals None.

I resorted to setting rasterio to 1.3.11 in our dev environment, but it is something to keep track of.
Possibly related to:

@Huite
Copy link
Contributor

Huite commented Oct 23, 2024

Might be GDAL itself:

(Rasterio) Version 1.4.0 will require GDAL >= 3.5

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

No branches or pull requests

2 participants