cogeotiff / rio-tiler

User friendly Rasterio plugin to read raster datasets.
https://cogeotiff.github.io/rio-tiler/
BSD 3-Clause "New" or "Revised" License
518 stars 108 forks source link

raise error when xarray dataset have wrong geo information #726

Closed vincentsarago closed 2 months ago

vincentsarago commented 2 months ago

another solution for #718 and #717

This is a bit more classic in a way that this PR adds checks for missing CRS or invalid Geographic bounds and then will raise an error directly when opening the dataset.

ref https://github.com/cogeotiff/rio-tiler/pull/725#issuecomment-2324702461