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"><<a href="mailto:markus.metz.giswork@googlemail.com">markus.metz.giswork@googlemail.com</a>></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>
<<a href="mailto:miltinho.astronauta@gmail.com">miltinho.astronauta@gmail.com</a>> wrote:<br>
> Dear all,<br>
><br>
> I have a raster map where each patch (i.e. forest fragment) have different<br>
> ID.<br>
> I need to estimate the perimeter per patch, but R.le.patch can'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>
> ------------<br>
> GRASS 6.4> r.le.patch map=fragments sam=w per=p1 siz=s1 out=STATS.txt<br>
><br>
> PARAMETER CHOICES:<br>
> MAP: fragments<br>
> SAMPLE: whole map TRACING: 8 neighbor<br>
> SIZE MEASURES:<br>
> mean patch size<br>
> PERIMETER MEASURES:<br>
> sum of perims<br>
><br>
> R.LE.PATCH IS WORKING....;<br>
><br>
> ERROR: G_calloc: unable to allocate 24806 * 8 bytes at alloc_cell.c:83<br>
> ------------<br>
><br>
> Any hint?<br>
><br>
> bests<br>
><br>
> milton<br>
><br>
</div>> _______________________________________________<br>
> grass-user mailing list<br>
> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
><br>
><br>
</blockquote></div><br>