[GRASS-SVN] r56284 - grass/trunk/scripts/v.rast.stats
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 17 05:44:56 PDT 2013
Author: mlennert
Date: 2013-05-17 05:44:56 -0700 (Fri, 17 May 2013)
New Revision: 56284
Modified:
grass/trunk/scripts/v.rast.stats/v.rast.stats.py
Log:
Use correct layer when adding columns to table
Modified: grass/trunk/scripts/v.rast.stats/v.rast.stats.py
===================================================================
--- grass/trunk/scripts/v.rast.stats/v.rast.stats.py 2013-05-17 12:01:10 UTC (rev 56283)
+++ grass/trunk/scripts/v.rast.stats/v.rast.stats.py 2013-05-17 12:44:56 UTC (rev 56284)
@@ -191,7 +191,7 @@
if addcols:
grass.verbose(_("Adding columns '%s'") % addcols)
- if grass.run_command('v.db.addcolumn', map = vector, columns = addcols) != 0:
+ if grass.run_command('v.db.addcolumn', map = vector, columns = addcols, layer=layer) != 0:
grass.fatal(_("Adding columns failed. Exiting."))
# calculate statistics:
More information about the grass-commit
mailing list