i just tried to use v.rast.stats in GRASS 6.4.3 and got the following error. It doesn’t really make sense because earlier, I did a v.to.rast conversion on the same file and all went well.
v.rast.stats --verbose vector=polop_subsect_sqlite@SAA2012_survey_analysis raster=srtm_p199r033_clean@dem colprefix=elev_avg
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
/Applications/GRASS/GRASS-6.4.3.app/Contents/MacOS/scripts/v
.rast.stats: line 190: 26362 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
(Tue Mar 27 18:15:08 2012) Command finished (1 sec)
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
v.rast.stats works fine in GRASS 7. The problem appears to be in the BASH script of GRASS 6.
Michael
On Mar 27, 2012, at 6:17 PM, Michael Barton wrote:
i just tried to use v.rast.stats in GRASS 6.4.3 and got the following error. It doesn’t really make sense because earlier, I did a v.to.rast conversion on the same file and all went well.
v.rast.stats --verbose vector=polop_subsect_sqlite@SAA2012_survey_analysis raster=srtm_p199r033_clean@dem colprefix=elev_avg
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
Area without centroid (may be OK for island)
/Applications/GRASS/GRASS-6.4.3.app/Contents/MacOS/scripts/v
.rast.stats: line 190: 26362 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
(Tue Mar 27 18:15:08 2012) Command finished (1 sec)
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
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