[GRASS-SVN] r70547 - grass-addons/grass7/vector/v.mapcalc
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 13 05:36:16 PST 2017
Author: hcho
Date: 2017-02-13 05:36:16 -0800 (Mon, 13 Feb 2017)
New Revision: 70547
Modified:
grass-addons/grass7/vector/v.mapcalc/v.mapcalc.py
Log:
v.mapcalc: Add and fix overwrite flag
Modified: grass-addons/grass7/vector/v.mapcalc/v.mapcalc.py
===================================================================
--- grass-addons/grass7/vector/v.mapcalc/v.mapcalc.py 2017-02-13 09:13:28 UTC (rev 70546)
+++ grass-addons/grass7/vector/v.mapcalc/v.mapcalc.py 2017-02-13 13:36:16 UTC (rev 70547)
@@ -16,6 +16,7 @@
#% description: Vector map calculator.
#% keyword: vector
#% keyword: algebra
+#% overwrite: yes
#%end
#%option
#% key: expression
@@ -222,7 +223,7 @@
if self.run:
m = mod.Module('g.rename', vector=(t[3], t[1]),
- overwrite=grass.overwrite, run_=False)
+ overwrite=grass.overwrite(), run_=False)
self.cmdlist.add_cmd(m)
self.remove_intermediate_vector_maps()
More information about the grass-commit
mailing list