[GRASS-dev] v.rast.stats Python error

Markus Neteler neteler at osgeo.org
Fri Jul 10 05:38:47 EDT 2009


Hi,

running v.rast.stats in GRASS 7 leads to a Python error:

GRASS 7.0.svn (spearfish60):~ > g.copy vect=fields,myfields   --o
Copy vector <fields at PERMANENT> to current mapset as <myfields>
WARNING: Vector map <myfields> already exists and will be overwritten

GRASS 7.0.svn (spearfish60):~ > v.rast.stats myfields
raster=elevation.dem colprefix=dem
WARNING: Area without centroid (may be OK for island)
WARNING: Area without centroid (may be OK for island)
Traceback (most recent call last):
  File "/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/scripts/v.rast.stats",
line 275, in <module>
    main()
  File "/home/neteler/grass70/dist.x86_64-unknown-linux-gnu/scripts/v.rast.stats",
line 164, in main
    table = f[1]
KeyError: 1

Not sure how to fix it,
Markus


More information about the grass-dev mailing list