JakubCha / exactextract_qgis

QGIS plugin to calculate zonal statistics using exactextract library
GNU General Public License v3.0
3 stars 1 forks source link

Incorrect statistics output values #14

Closed JakubCha closed 1 week ago

JakubCha commented 2 weeks ago

There is a difference between stats values "max" and "mean" for polygons that lay in one raster pixel. They should be equal.

It was confirmed that using geopandas and raster path input, the result is correct. The bug might be in the plugin code or in "qgis" code of the exactextract library.

JakubCha commented 2 weeks ago

This seems to happen if a non-unique ID field is chosen. Check for ID field uniqueness should be added.

JakubCha commented 1 week ago

The commit f114ffe should fix the issue in the upcoming pull. The selected ID field will be checked for uniqueness.