Hi Markus,<br><br>Thanks for the reply. In fact a vector-based should solve this.<br>But, unfortulatelly, as I am working with a very large raster map <br>(48,000 x 60,000 pixels; 250,000 clumps), and GRASS fail when <br>I try r.to.vect under Windows/Vista. Is there any other options<br>
of convert large raster maps to vector, instead of r.to.vect?<br><br>cheers<br>milton<br><br><div class="gmail_quote">2011/2/12 Markus Metz <span dir="ltr">&lt;<a href="mailto:markus.metz.giswork@googlemail.com">markus.metz.giswork@googlemail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Sat, Feb 12, 2011 at 5:11 AM, Milton Cezar Ribeiro<br>
&lt;<a href="mailto:miltinho.astronauta@gmail.com">miltinho.astronauta@gmail.com</a>&gt; wrote:<br>
&gt; Dear all,<br>
&gt;<br>
&gt; I have a raster map where each patch (i.e. forest fragment) have different<br>
&gt; ID.<br>
&gt; I need to estimate the perimeter per patch, but R.le.patch can&#39;t do the job.<br>
<br>
</div>Have you tried a vector approach? Then the perimeter can be simply uploaded with<br>
v.to.db option=perimeter.<br>
<br>
(Watch out for the fractal problem, both r.le.patch and v.to.db)<br>
<br>
Markus M<br>
<div class="im"><br>
&gt; ------------<br>
&gt; GRASS 6.4&gt; r.le.patch map=fragments sam=w per=p1 siz=s1 out=STATS.txt<br>
&gt;<br>
&gt; PARAMETER CHOICES:<br>
&gt;         MAP:      fragments<br>
&gt;         SAMPLE:   whole map     TRACING:  8 neighbor<br>
&gt;         SIZE MEASURES:<br>
&gt;                   mean patch size<br>
&gt;         PERIMETER MEASURES:<br>
&gt;                   sum of perims<br>
&gt;<br>
&gt; R.LE.PATCH IS WORKING....;<br>
&gt;<br>
&gt; ERROR: G_calloc: unable to allocate 24806 * 8 bytes at alloc_cell.c:83<br>
&gt; ------------<br>
&gt;<br>
&gt; Any hint?<br>
&gt;<br>
&gt; bests<br>
&gt;<br>
&gt; milton<br>
&gt;<br>
</div>&gt; _______________________________________________<br>
&gt; grass-user mailing list<br>
&gt; <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>