[GRASS-SVN] r69958 - grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.financial

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 30 13:54:48 PST 2016


Author: Giulia
Date: 2016-11-30 13:54:47 -0800 (Wed, 30 Nov 2016)
New Revision: 69958

Modified:
   grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.financial/r.green.hydro.financial.py
Log:
r.green: v.build added

Modified: grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.financial/r.green.hydro.financial.py
===================================================================
--- grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.financial/r.green.hydro.financial.py	2016-11-30 15:49:35 UTC (rev 69957)
+++ grass-addons/grass7/raster/r.green/r.green.hydro/r.green.hydro.financial/r.green.hydro.financial.py	2016-11-30 21:54:47 UTC (rev 69958)
@@ -497,7 +497,7 @@
 import atexit
 import numpy as np
 from grass.exceptions import ParameterError
-from grass.script.core import parser, overwrite, warning
+from grass.script.core import parser, overwrite, warning, run_command
 from grass.pygrass.modules.shortcuts import raster as r
 from grass.pygrass.modules.shortcuts import vector as v
 
@@ -623,6 +623,7 @@
     cname = expr[:equal].strip()
     expr = expr[(equal + 1):].strip()
     cnames = get_cnames(expr)
+    run_command('v.build', map=vname)
     vname, vmapset = vname.split('@') if '@' in vname else (vname, '')
     with VectorTopo(vname, mapset=vmapset, layer=vlayer, mode='r') as vect:
         if vect.table is None:



More information about the grass-commit mailing list