<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">v.rast.stats is broken in GRASS 6.4.2 and 6.4.3. Here is an example of what is happening.<div><br></div><div><div>GRASS 6.4.2 (Spain_utm_wgs84z30):~ &gt; v.rast.stats -c vector=alcala_subsect_g6@SAA2012_survey_analysis raster=srtm_p199r033_clean@dem colprefix=elev</div><div>WARNING: Area without centroid (may be OK for island)</div><div>WARNING: Area without centroid (may be OK for island)</div><div>WARNING: Area without centroid (may be OK for island)</div><div>WARNING: Area without centroid (may be OK for island)</div><div>/Applications/GRASS/GRASS-6.4.2.app/Contents/MacOS/scripts/v.rast.stats: line 190: 15086 Abort trap: 6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; v.to.rast in="$VECTORFULL" out="${VECTOR}_$TMPNAME" layer="$GIS_OPT_LAYER" use=cat type=area --quiet</div><div>ERROR: An error occurred while converting vector to raster</div><div><br></div><div><br></div><div>If I do the same thing in GRASS 7, it does not cause this error, but numerous vector areas are skipped. There is no apparent reason that they are skipped.</div><div><br></div><div>Sometimes running v.rast.stats in GRASS 7 does have an error that there are no categories in the raster used--when there clearly ARE categories in all cells that match up with the vector areas.</div><div><br></div><div>This is a serious bug in an important analytical module for GRASS</div><div><br></div><div>Michael</div><div><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-size: 12px; ">_____________________</span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="font-size: 12px; ">C. Michael Barton</div><div style="font-size: 12px; ">Visiting Scientist, Integrated Science Program</div><div style="font-size: 12px; ">National Center for Atmospheric Research &amp;</div><div style="font-size: 12px; ">University Consortium for Atmospheric Research</div><div style="font-size: 12px; ">303-497-2889 (voice)</div><div style="font-size: 12px; "><br></div><div style="font-size: 12px; ">Director, Center for Social Dynamics &amp; Complexity&nbsp;</div><div style="font-size: 12px; ">Professor of Anthropology,&nbsp;School of Human Evolution &amp; Social Change</div><div style="font-size: 12px; ">Arizona State University</div><div style="font-size: 12px; ">www:&nbsp;<a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a>,&nbsp;<a href="http://csdc.asu.edu/">http://csdc.asu.edu</a></div></div><div><br></div></div></span></div></span></div></span></span></div></div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>