gdal icon indicating copy to clipboard operation
gdal copied to clipboard

Add `Rasterband::set_statistics`

Open netthier opened this issue 2 years ago • 1 comments

  • [x] I agree to follow the project's code of conduct.
  • [x] I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

This PR adds safe bindings for https://docs.rs/gdal-sys/latest/gdal_sys/fn.GDALSetRasterStatistics.html (https://gdal.org/api/gdalrasterband_cpp.html#_CPPv4N14GDALRasterBand13SetStatisticsEdddd). I also fixed up the docs for get_statistics where a backtick was missing.

netthier avatar Apr 19 '24 12:04 netthier

It could maybe make sense to have the method take StatisticsAll instead.

netthier avatar Apr 19 '24 12:04 netthier