On Mon, Sep 19, 2016 at 6:41 PM, Antonello Lobianco
<antone...@lobianco.org> wrote:
> Let's say in grass I have a raster layer "regionId" and a raster layer
> "forestArea".
>
> In the regionId I have stored the ids of the regions, in the forestArea I
> stored the square km of forest within the pixel.
>
> How can I print a table summing up the forest area by region, that is the
> sum of the values of a layer aggregated ("group by") by a second layer ?

Please take a look at
https://grasswiki.osgeo.org/wiki/Zonal_statistics

There are several options.

Best
Markus
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to