0

Is there a way to "switch off" statistics approximation by rasters performed by QGIS? Approximated min and max values are automatically embedded into legend labels of rasters and I would need exact ones instead. Or the only way is editing of metadata in Tiff itself?

PS: I am using QGIS 3.22 and work with Geotiffs

1 Answer 1

0

You can force the exact values from the layer properties by setting the extent to Whole raster and accuracy to Actual.

enter image description here

I tried to edit the user interface with "Interface Customization" from "QgsRasterMinMaxWidgetBase" for making the selections permanent by de-activating the other options from the menus but my trial was not successful. Maybe I made some mistake with customization.

Alternatively it is possible to make QGIS to use the exact values with the "Stretch Histogram to Full Dataset" tool from the Raster Toolbar.

enter image description here

1
  • Thanks a lot. Switching accuracy to "Actual(slower)" solved the problem
    – Jan Zachar
    Commented Aug 23, 2023 at 18:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.