Hi Markus,<br><br>I will try that. The GRASS_VECTOR_LOWMEM=1 works only for G7?<br><br>best<br><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;">On Sat, Feb 12, 2011 at 11:58 AM, Milton Cezar Ribeiro<br>
<div class="im">&lt;<a href="mailto:miltinho.astronauta@gmail.com">miltinho.astronauta@gmail.com</a>&gt; wrote:<br>
</div><div class="im">&gt; Hi Markus,<br>
&gt;<br>
&gt; Thanks for the reply. In fact a vector-based should solve this.<br>
&gt; But, unfortulatelly, as I am working with a very large raster map<br>
&gt; (48,000 x 60,000 pixels; 250,000 clumps), and GRASS fail when<br>
&gt; I try r.to.vect under Windows/Vista. Is there any other options<br>
&gt; of convert large raster maps to vector, instead of r.to.vect?<br>
&gt;<br>
</div>No, but you could try a recent version of GRASS 7 and after starting<br>
GRASS, set at the commandline<br>
<br>
export GRASS_VECTOR_LOWMEM=1<br>
<br>
then try r.to.vect<br>
<br>
It will take some time, but it should finish eventually.<br>
<br>
Markus M<br>
<br>
&gt;<br>
&gt; Markus Metz:<br>
&gt;&gt;<br>
&gt;&gt; Milton Cezar Ribeiro:<br>
<div><div></div><div class="h5">&gt;&gt; &gt; Dear all,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I have a raster map where each patch (i.e. forest fragment) have<br>
&gt;&gt; &gt; different<br>
&gt;&gt; &gt; ID.<br>
&gt;&gt; &gt; I need to estimate the perimeter per patch, but R.le.patch can&#39;t do the<br>
&gt;&gt; &gt; job.<br>
&gt;&gt;<br>
&gt;&gt; Have you tried a vector approach? Then the perimeter can be simply<br>
&gt;&gt; uploaded with<br>
&gt;&gt; v.to.db option=perimeter.<br>
&gt;&gt;<br>
&gt;&gt; (Watch out for the fractal problem, both r.le.patch and v.to.db)<br>
&gt;&gt;<br>
&gt;&gt; Markus M<br>
&gt;&gt;<br>
&gt;&gt; &gt; ------------<br>
&gt;&gt; &gt; GRASS 6.4&gt; r.le.patch map=fragments sam=w per=p1 siz=s1 out=STATS.txt<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; PARAMETER CHOICES:<br>
&gt;&gt; &gt;         MAP:      fragments<br>
&gt;&gt; &gt;         SAMPLE:   whole map     TRACING:  8 neighbor<br>
&gt;&gt; &gt;         SIZE MEASURES:<br>
&gt;&gt; &gt;                   mean patch size<br>
&gt;&gt; &gt;         PERIMETER MEASURES:<br>
&gt;&gt; &gt;                   sum of perims<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; R.LE.PATCH IS WORKING....;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ERROR: G_calloc: unable to allocate 24806 * 8 bytes at alloc_cell.c:83<br>
&gt;&gt; &gt; ------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Any hint?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; bests<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; milton<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; grass-user mailing list<br>
&gt;&gt; &gt; <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
&gt;&gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>