I have been using qgis for the last few months. I got interested in using GRASS tools through QGIS. I wanted to compute zonal statistics for a raster surface for a given polygon layer. I loaded the raster and the vector successfully into QGIS and GRASS. Then I used v.rast.stats Tool to compute zonal statistics and the program runs without any error. Here is a screenshot of the analysis:

enter image description here

But I can't see the results in my vector map. When I open the attribute table, no new column has been added. Can anyone advice me on how to get a new column with the computed value?



  • what does v.info Gindustry@mapset1 yield? – dmci Oct 23 '13 at 14:09
  • Thanks for your reply. I didn't find any Tool called v.info. Can you please provide a screenshot of how to get this Tool? – Zaman Oct 24 '13 at 7:29

If you use the GRASS plugin, you are working in GRASS, not in QGIS and the results will be written to the GRASS layer, not directly to the layer displayed in QGIS.

1) in GRASS GIS:

enter image description here


enter image description here

The solution: reload your layer from GRASS GIS.

If you want directly work in QGIS with the commands of GRASS, you use GRASS in the Toolbox of the menu "Processing", but no v.rast.stats !

| improve this answer | |
  • Thanks Gene for your kind reply. I have been able to solve the problem. – Zaman Oct 24 '13 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.