Option for partial pixel overlap in Zonal Statistics #38273
Labels
Feature Request
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Feature description.
The current
native:zonalstatistics
only considers pixels which have their centroïd overlapping the polygons and computes statistics as if all pixels have the same weight. It could be useful if an option was available to consider the proportion of area covered for each pixel as weight for the statistics. The count stats would then be fractional also.Additional context
I must add that there is currently either a hidden feature or a bug for polygons covering the centroïd of one pixel or none at all. In that case, the tool works as I suggest and uses the fractional area to compute the stats. It seems that there has been a bug about that in past (see #25058).
The text was updated successfully, but these errors were encountered: