<html style="direction: ltr;">
<head>
<meta content="text/html; charset=windows-1255"
http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="preferred-charset" text="#660000"
bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 27/05/2013 16:41, Marcello Benigno
wrote:<br>
</div>
<blockquote
cite="mid:CAKPVhYK4bFiUVm_WgD2xehpdKdcs9dM++_hv==X0qi2GGSkAkQ@mail.gmail.com"
type="cite">
<div>I'm working on the preparation of the statement of
Agricultural Capacity in general terms the <b>final map</b> has
classes ranging 1-8.</div>
<div> </div>
<div>To get this map I use three themes with their respective
notes:</div>
<div>
<ul>
<li>Map of Slope: with classes ranging 1 to 8;</li>
<li>Soil Map: with classes ranging 1 to 8;</li>
<li>Map of flood risk: with classes ranging 1 to 8;</li>
</ul>
</div>
<div>I - After converting all to a vector format and "merge" the
three layers, I have multiple polygons with various
combinations, eg:</div>
<div>a) 1,3,1</div>
<div>b) 5,2,1</div>
<div>c) 4,2,1</div>
<div>d) 1,1,8</div>
<div> </div>
<div>II - To determine the final value of the class is chosen the
highest value:</div>
<div>a) 3</div>
<div>b) 5</div>
<div>c) 4</div>
<div>
d) 8</div>
<div> </div>
</blockquote>
Not sure I understand the logic of taking the highest value, but you
can do this simply with the original rasters using:<br>
r.series input=slope,soils,floods out=agri_risk method=max <br>
<br>
Then convert to vectors only at the end.<br>
<br>
<blockquote
cite="mid:CAKPVhYK4bFiUVm_WgD2xehpdKdcs9dM++_hv==X0qi2GGSkAkQ@mail.gmail.com"
type="cite">
<div>I need to automate this task because the last step (II) is
very slow (actually manually), which would be the best way to do
this? I think the whole process can be done with the data in
raster format, but have not found a formula that I can apply in
r.mapcalc to this problem.</div>
<div><br>
</div>
<div>Thanks in advance,</div>
-- <br>
<b>Marcello Benigno B. de Barros Filho</b><br>
<font size="1">Prof. do Curso Superior de Tecnologia em
Geoprocessamento - IFPB<br>
Mestre em Ciências Geodésicas e Tecnologias da Geoinformação -
UFPE</font>
<div>
<font size="1">Doutorando em Tecnologia Ambiental e Recursos
Hídricos - UFPE</font><font size="1"><br>
</font><font size="1"><a moz-do-not-send="true"
href="http://profmarcello.blogspot.com" target="_blank">http://profmarcello.blogspot.com</a></font>
<div>
<a moz-do-not-send="true"
href="http://about.me/marcello.benigno" target="_blank"><font
size="1">http://about.me/marcello.benigno</font></a></div>
</div>
<br>
This mail was received via Mail-SeCure System.<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
This mail was received via Mail-SeCure System.
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Micha Silver
GIS Consulting
052-3665918
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il">http://www.surfaces.co.il</a>
</pre>
</body>
</html>