[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


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

  File "/usr/local/grass-7.3.svn/scripts/v.rast.stats", line 292, in 
   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 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