Feature request #3338
zonal statistics
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Marco Hugentobler | ||
Category: | C++ Plugins | ||
Pull Request or Patch supplied: | No | Resolution: | |
Easy fix?: | No | Copied to github as #: | 13398 |
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...
History
#1 Updated by Giovanni Manghi almost 14 years ago
meanwhile you have zonal statistics trough the GRASS plugin.
#2 Updated by flo - almost 14 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).
#3 Updated by Borys Jurgiel almost 14 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! :)
#4 Updated by Marco Hugentobler almost 14 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
#5 Updated by Giovanni Manghi almost 14 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...
#6 Updated by flo - almost 14 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 ?
#7 Updated by Paolo Cavallini about 13 years ago
- Pull Request or Patch supplied set to No
I understand it has been added to Windows build - please add it also to debs
#8 Updated by Giovanni Manghi about 13 years ago
- Priority changed from Low to Normal
- Target version changed from Version 2.0.0 to Version 1.7.1
#9 Updated by Jürgen Fischer about 13 years ago
- Status changed from Open to Closed