We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Typical usecase for mutable georaster is for chaning properties of existing rasters:
raster=GeoRaster2.open(path, mutable=True) raster.affine = new_affine raster.save(path)
However, this fails with the following
telluric.georaster.GeoRaster2IOError: /tmp/tmpr3uk6ttb/overlap2.tif and /tmp/tmpr3uk6ttb/overlap2.tif identify the same dataset.
Note that this is only because of the lazy loading. If you add lazy_load=False to the open call above, everything works fine.
lazy_load=False
Possible remedies:
save
open()
True
False
(3) is easiest to implement, (1) may be more general, both may have confusing edge cases. Any opinions?
The text was updated successfully, but these errors were encountered:
added failing test for issue #257
02d0f3f
No branches or pull requests
Typical usecase for mutable georaster is for chaning properties of existing rasters:
However, this fails with the following
Note that this is only because of the lazy loading. If you add
lazy_load=False
to the open call above, everything works fine.Possible remedies:
save
, if output path is equal to input and lazy_loaded: load before saving (instead of trying to copy to self)save
, if it is a mutable raster, then load before savingopen()
, if mutable=True, then the default for lazy_load becomesTrue
instead ofFalse
(3) is easiest to implement, (1) may be more general, both may have confusing edge cases. Any opinions?
The text was updated successfully, but these errors were encountered: