In GRASS you could do:<br><ul><li>Convert vector file to raster (<b><i>v.to.rast.attr</i></b>), using the land use class as raster category<br></li><li>Use<b><i> r.stats</i></b> or<i><b> r.report </b></i>to calculate coverage of each land use class. The r.report functions offer more output options, the r.stats output is easier to use in e.g., a spreadsheet.<br>
</li></ul>These GRASS GIS commands are also available in the GRASS toolbox or the Sexante Toolbox in QGIS. To find the functions mentioned above, both toolboxes have a filter / search box making it easy to find any command / function.<br>
<br>Note that to the GRASS toolbox you will need the extra step of importing your data in a GRASS GIS database. If you don't have your data in a GRASS GIS database, you probably want to try the Sextante toolbox. <br><br>
<br><br><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 2, 2012 at 11:43 AM, Dietrich Heintz <span dir="ltr"><<a href="mailto:dheintz@gmx.net" target="_blank">dheintz@gmx.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
I have a raster with landuse classification from Modis and would like<br>
to aggregate the hectarage of each class within administrative boundaries.<br>
<br>
Is there a tool in QGIS or Grass that aggregates the percentual coverage<br>
of each (landuse) class within each feature of the shape directly from<br>
the raster?<br>
<br>
At the moment I polygonize and intersect, but it turned out to be very<br>
time consuming,<br>
due to the processing.<br>
<br>
If someone has a useful idea or solution I would be very much pleased.<br>
<br>
Dieter<br>
<br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div><br></div>