Wednesday, 7 October 2015

raster - Summing pixel values within polygon zone in QGIS?



I have two layers: a raster layer and a vector layer (polygon). I can see the values of the raster pixels but I don't know how to combine them with information from the polygon layer. More specifically, I would like to :



  1. sum values of all pixels within a the borders of a polygon

  2. count the number of pixels with a specific value within the borders of a polygon


Can anybody help and advise on how to do this in QGIS?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...