[GRASS-dev] v.rast.stats broken - all versions

Michael Barton michael.barton at asu.edu
Tue Apr 3 01:05:51 EDT 2012


v.rast.stats is broken in GRASS 6.4.2 and 6.4.3. Here is an example of what is happening.

GRASS 6.4.2 (Spain_utm_wgs84z30):~ > v.rast.stats -c vector=alcala_subsect_g6 at SAA2012_survey_analysis raster=srtm_p199r033_clean at dem colprefix=elev
WARNING: Area without centroid (may be OK for island)
WARNING: Area without centroid (may be OK for island)
WARNING: Area without centroid (may be OK for island)
WARNING: Area without centroid (may be OK for island)
/Applications/GRASS/GRASS-6.4.2.app/Contents/MacOS/scripts/v.rast.stats: line 190: 15086 Abort trap: 6           v.to.rast in="$VECTORFULL" out="${VECTOR}_$TMPNAME" layer="$GIS_OPT_LAYER" use=cat type=area --quiet
ERROR: An error occurred while converting vector to raster


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.

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.

This is a serious bug in an important analytical module for GRASS

Michael
_____________________
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research &
University Consortium for Atmospheric Research
303-497-2889 (voice)

Director, Center for Social Dynamics & Complexity 
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20120402/f951fea6/attachment-0001.html


More information about the grass-dev mailing list