Feature request #3338
|Pull Request or Patch supplied:||No||Resolution:|
|Easy fix?:||No||Copied to github as #:||13398|
A zonal statistics plugin would be great. It would allow to extract raster statistics with a vector layer : mean raster value for each vector features (polygon, line or point), and also standard deviation, median...
#2 Updated by flo - over 10 years ago
Replying to [comment:1 lutra]:
meanwhile you have zonal statistics trough the GRASS plugin.
Thank you for your answer, I use also Grass. However, I think it's an "usual" GIS task, and it would be more convenient if it could be directly done in Qgis, without Grass. Moreover, I think the zonal stat in Grass takes a lot of time to compute statistics (in comparison with Arcgis).
#4 Updated by Marco Hugentobler over 10 years ago
There is a zonal statistic function in the analysis library (analysis/vector/qgszonalstatistics.cpp/.h). I've wrote the function and a plugin because GRASS was too slow for my needs. However, also the function in the analysis lib is still far from optimal performance and follows a 'naive' approach. That's why I didn't commit the (GUI) plugin to trunk.
If you are interested in using the plugin, go to http://www.sourcepole.com/2010/12/16/zonal-statistics-plugin-for-qgis and download the source. It is explained on the page how to recompile.