Hi Antonello,<div><br></div><div>I would first make a field for the area in the vector attribute table with v.db.addcol, then compute the area of each vector with v.to.db and store it in the attribute table. Then I'd convert the vectors to rasters using the parameter "use=attr" and tell GRASS to use the area column as the cell values. Hope that helps!</div>

<div><br></div><div>Daniel<br clear="all">

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"></span></p><p>--<br></p><p>B.Sc. Daniel Lee<br>

Geschäftsführung für Forschung und Entwicklung<br>ISIS - International Solar Information Solutions GbR<br>Vertreten durch: Daniel Lee, Nepomuk Reinhard und Nils Räder<br></p><p>Softwarecenter 3<br>35037 Marburg<br>Festnetz: <a value="+4964213796256" style="color:rgb(28,81,168)">+49 6421 379 6256</a><br>

Mobil: <a value="+4917661277269" style="color:rgb(28,81,168)">+49 176 6127 7269</a><br>E-Mail: <a href="mailto:Lee@isi-solutions.org" style="color:rgb(28,81,168)" target="_blank">Lee@isi-solutions.org</a><br>Web: <a href="http://www.isi-solutions.org/" style="color:rgb(28,81,168)" target="_blank">http://www.isi-solutions.org</a></p>

<p></p><br>
<br><br><div class="gmail_quote">2012/6/12 Antonello Lobianco <span dir="ltr"><<a href="mailto:antonello@lobianco.org" target="_blank">antonello@lobianco.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello everybody on the list!<br><br>  I am a "occasional" grass gis user and I'm stuck with a relatively simple task: I have a high-res vector layer describing only one category (Corine Land Cover map for "broad-leaved forests", 311) and I want to rasterise it in a low-res 8-by-8 km raster map where the value stored on each cell is the area (or, that's the same, the share of the area) that the vector cover within that cell.<br>


So each pixel/cell would have a value ranging from 0 (no broad-leaved forest at all) to 64 (all the area of the pixel is covered by broaded-leaved forests).<br>I already managed to get the region with the right cell dimension, add the area geometry to the vector and load it in grass, but I don't know now how to rasterize it (v.to.raster seems to me to not offer the option to put the area, but only a specific catgegory, but maybe I am wrong??).<br>


<br>Thank you for any hint you could provide me.<span class="HOEnZb"><font color="#888888"><br><br>Antonello<br><br clear="all"><br>-- <br>Antonello Lobianco<br>INRA, Laboratoire d'Economie Forestière<br>14 Rue Girardet - 54000 Nancy, France<br>

Tel: <a href="tel:%2B33.652392310" value="+33652392310" target="_blank">+33.652392310</a><br>
Email: <a href="mailto:antonello.lobianco@nancy-engref.inra.fr" target="_blank">antonello.lobianco@nancy-engref.inra.fr</a><br><a href="http://antonello.lobianco.org/" target="_blank">http://antonello.lobianco.org</a><br>



</font></span><br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
<br></blockquote></div><br></div>