Opened 13 years ago
Last modified 13 years ago
#3338 new enhancement
zonal statistics
Reported by: | flo | Owned by: | mhugent |
---|---|---|---|
Priority: | minor: annoyance | Milestone: | Version 2.0.0 |
Component: | C++ Plugins | Version: | |
Keywords: | Cc: | ||
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
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...
Change History (8)
follow-up: 2 comment:1 by , 13 years ago
comment:2 by , 13 years ago
Replying to 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).
comment:3 by , 13 years ago
Could you please add this idea to http://www.qgis.org/wiki/Python_Plugin_Ideas ? We set that page over a year ago, so let's start using it! :)
comment:4 by , 13 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.
Regards, Marco
comment:5 by , 13 years ago
Hi Marco, is really that bad? ;)
I would not mind to have even a sub optimal solution in QGIS and then have it upgraded when possible in the future...
comment:6 by , 13 years ago
Thank you for this function. I've tested it and it seems to work fine ! Couldn't it be by default in Qgis ?
comment:7 by , 13 years ago
Component: | Python plugins and bindings → C++ Plugins |
---|---|
Owner: | changed from | to
comment:8 by , 13 years ago
Milestone: | → Version 2.0.0 |
---|
meanwhile you have zonal statistics trough the GRASS plugin.