<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">El lun., 2 jul. 2018 13:21, Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
<br>
I have a vague memory that someone has coded this before, but cannot<br>
find it anywhere, but before I code it myself I wanted to know if my<br>
vague memory actually was right: I need a module that takes a<br>
qualitative raster map (e.g. land cover map) and a vector polygon map<br>
and calculates the share of each raster class in each vector polygon.<br>
This just means looping of the raster categories, create a reclass map<br>
for each category (category = 1 and rest=null) and then use r.univar to<br>
calculate non_null_cells/(non_null_cells+null_cells), so it's fairly<br>
easy to code, but even so, does anyone know if something like this<br>
already exists, before I reinvent the wheel ?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This would be super nice to have ;)</div><div dir="auto"><br></div><div dir="auto">Vero</div></div>