[GRASS-dev] v.rast.stats does not recognize layer="cat"
Martin Landa
landa.martin at gmail.com
Wed Oct 26 11:33:31 PDT 2016
Hi, please report this issue in trac. It's a bug. Ma
2016-10-26 19:53 GMT+02:00 Yann <dr.yann.chemin at gmail.com>:
> 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
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
More information about the grass-dev
mailing list