[GRASS-dev] v.rast.stats does not recognize layer="cat"

Yann dr.yann.chemin at gmail.com
Wed Oct 26 10:53:28 PDT 2016


Hi,

v.rast.stats map=$imf raster=$imf.4 layer="cat" column_prefix=n 
method=average

  File "/usr/local/grass-7.3.svn/scripts/v.rast.stats", line 292, in 
<module>
     main()
   File "/usr/local/grass-7.3.svn/scripts/v.rast.stats", line 147, in main
     fi = grass.vector_db(map=vector)[int(layer)]
ValueError: invalid literal for int() with base 10: 'cat'


 From the manual:

---------------------------
layer=string
Layer number or name
Vector features can have category values in different layers. This 
number determines which layer to use. When used with direct OGR access 
this is the layer name.
Default: 1



More information about the grass-dev mailing list