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
In wanting to set a GeoTIFF's CRS, I encountered this NotImplementedError when trying to run the following code:
with rasterio.open(filepath) as src:
src.crs = "EPSG:3857"
Though in retrospect it is obvious the above will fail without explicitly specifying the proper mode , i.e. 'r+' in this case, I was momentarily thrown off by the error and assumed something was wrong with my approach. Would a more explicit error message be useful here?
The text was updated successfully, but these errors were encountered:
If you open a file in "r" mode and try to set the encoding attribute of the file object, you'll see AttributeError: readonly attribute. I think we could do something like that.
In wanting to set a GeoTIFF's CRS, I encountered this NotImplementedError when trying to run the following code:
Though in retrospect it is obvious the above will fail without explicitly specifying the proper mode , i.e.
'r+'
in this case, I was momentarily thrown off by the error and assumed something was wrong with my approach. Would a more explicit error message be useful here?The text was updated successfully, but these errors were encountered: