[GRASS-SVN] r67201 - grass/branches/releasebranch_7_0/scripts/v.rast.stats

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 17 03:33:58 PST 2015


Author: neteler
Date: 2015-12-17 03:33:58 -0800 (Thu, 17 Dec 2015)
New Revision: 67201

Modified:
   grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py
Log:
v.rast.stats: fix missing layer option in v.to.rast call (trac #2831, trunk r67200)

Modified: grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py	2015-12-17 11:32:54 UTC (rev 67200)
+++ grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py	2015-12-17 11:33:58 UTC (rev 67201)
@@ -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