Markus,<div>The first thing that occurs to me is to make the value of the first raster  from the polygon layer the area of the polygon.  r.mapcalculator to divide the value of each raster by the area of a raster cell.  This should give you a raster with the value of the proportion of area of the polygon in each cell.  </div>

<div><br></div><div>Now rasterize the polygon layer with the original attribute you wanted to affect.  Multiply this raster by the proportional raster above. </div><div><br></div><div>A bit brute force, but it should give you what you want.</div>

<div><br></div><div>Doug</div><div><br><br><div class="gmail_quote">On Thu, Nov 8, 2012 at 5:29 AM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</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>
<br>
for a project I would be in need to rasterize vector polygons with<br>
attribute value to the raster model where the resulting raster cells<br>
carry the weighted portion of the original attribute according to<br>
the area covered.<br>
<br>
Example:<br>
A square vector polygon with value 10.000 falls onto four raster<br>
cells. The resulting cells should each carry the value 2.500.<br>
<br>
I wonder if the mechanism used in r.resamp.stats for -w:<br>
    Weight according to area<br>
could be implemented in v.to.rast to achieve this goal.<br>
<br>
thanks<br>
Markus<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</blockquote></div><br></div>