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
Changing this parameter to Option<f64> would be a breaking change, but would improve the API. The other option is to have a fn delete_no_data(&mut self) -> Result<()> method which would be non-breaking, but less idiomatic on the Rust side.
The text was updated successfully, but these errors were encountered:
Issue
There's no way to delete a
no_data
value in aRasterBand
.Commentary
Symmetry in the read vs. write is confusing. i.e. you can determine if there's no
no_data
value thanks to the return typeOption<f64>
:gdal/src/raster/rasterband.rs
Line 389 in fb6e260
But the write method only accepts
f64
:gdal/src/raster/rasterband.rs
Line 400 in fb6e260
Changing this parameter to
Option<f64>
would be a breaking change, but would improve the API. The other option is to have afn delete_no_data(&mut self) -> Result<()>
method which would be non-breaking, but less idiomatic on the Rust side.The text was updated successfully, but these errors were encountered: