[GRASS-SVN] r67200 - grass/trunk/scripts/v.rast.stats
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Dec 17 03:32:54 PST 2015
Author: neteler
Date: 2015-12-17 03:32:54 -0800 (Thu, 17 Dec 2015)
New Revision: 67200
Modified:
grass/trunk/scripts/v.rast.stats/v.rast.stats.py
Log:
v.rast.stats: fix missing layer option in v.to.rast call (trac #2831)
Modified: grass/trunk/scripts/v.rast.stats/v.rast.stats.py
===================================================================
--- grass/trunk/scripts/v.rast.stats/v.rast.stats.py 2015-12-17 09:35:29 UTC (rev 67199)
+++ grass/trunk/scripts/v.rast.stats/v.rast.stats.py 2015-12-17 11:32:54 UTC (rev 67200)
@@ -139,7 +139,7 @@
# prepare raster MASK
try:
- grass.run_command('v.to.rast', input=vector, output=rastertmp,
+ grass.run_command('v.to.rast', input=vector, layer=layer, output=rastertmp,
use='cat', quiet=True)
except CalledModuleError:
grass.fatal(_("An error occurred while converting vector to raster"))
More information about the grass-commit
mailing list