Skip to content

test_gdal_compliant_grid_crs fails with rasterio 1.4 #1253

@JoerivanEngelen

Description

@JoerivanEngelen

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:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions