Hi Antonello, 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!
Daniel -- B.Sc. Daniel Lee Geschäftsführung für Forschung und Entwicklung ISIS - International Solar Information Solutions GbR Vertreten durch: Daniel Lee, Nepomuk Reinhard und Nils Räder Softwarecenter 3 35037 Marburg Festnetz: +49 6421 379 6256 Mobil: +49 176 6127 7269 E-Mail: [email protected] Web: http://www.isi-solutions.org 2012/6/12 Antonello Lobianco <[email protected]> > Hello everybody on the list! > > 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. > 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). > 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??). > > Thank you for any hint you could provide me. > > Antonello > > > -- > Antonello Lobianco > INRA, Laboratoire d'Economie Forestière > 14 Rue Girardet - 54000 Nancy, France > Tel: +33.652392310 > Email: [email protected] > http://antonello.lobianco.org > > _______________________________________________ > grass-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/grass-user > >
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
