You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is meant to happen instead? Should we default to WGS84? Or fail earlier, asking the user to make sure that da.rio.crs is defined?
I think we should assert the crs is set. I would love to avoid setting WGS84 crs by default because we might get weird result if people use something else but forgot to add it correctly in the file.
Maybe we could have something based on env variable, like RIO_TILER_XARRAY_USE_WGS84=TRUE/FALSE
A pretty common case is that a DataArray passed to
XarrayReader
does not have a CRS defined (viarioxarray
).E.g. with the xarray tutorial data:
CRSError: CRS is invalid: None
In this case,
da.rio.crs
isNone
andXarrayReader.crs
inherits that in this linerio-tiler/rio_tiler/io/xarray.py
Line 74 in 8573dbe
What is meant to happen instead? Should we default to WGS84? Or fail earlier, asking the user to make sure that
da.rio.crs
is defined?We have this
geographic_crs
attribute, but it is not used anywhere, afaics.https://github.com/cogeotiff/rio-tiler/blob/8573dbe7b3ea7325e7db084f29bc47f9797d0bbe/rio_tiler/io/xarray.py#L61C5-L61C19
The text was updated successfully, but these errors were encountered: