[GRASS-SVN] r62461 - in grass-addons/grass7/vector: v.civil/v.civil.road v.class.mlpy v.surf.icw
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 28 16:15:59 PDT 2014
Author: hcho
Date: 2014-10-28 16:15:59 -0700 (Tue, 28 Oct 2014)
New Revision: 62461
Modified:
grass-addons/grass7/vector/v.civil/v.civil.road/v.civil.road.py
grass-addons/grass7/vector/v.class.mlpy/v.class.mlpy.html
grass-addons/grass7/vector/v.surf.icw/v.surf.icw.py
Log:
Update to new g.list/remove API
Modified: grass-addons/grass7/vector/v.civil/v.civil.road/v.civil.road.py
===================================================================
--- grass-addons/grass7/vector/v.civil/v.civil.road/v.civil.road.py 2014-10-28 23:11:08 UTC (rev 62460)
+++ grass-addons/grass7/vector/v.civil/v.civil.road/v.civil.road.py 2014-10-28 23:15:59 UTC (rev 62461)
@@ -3224,7 +3224,7 @@
#g.message(_("Creating backup"))
#g.run_command('g.rename', vect=NameMap+"_old"+","+NameMap+"_old2")
#g.run_command('g.copy', vect=NameMap+","+NameMap+"_old")
- #g.run_command('g.remove', flags='f', vect=NameMap+"_old2")
+ #g.run_command('g.remove', flags='bf', type='vect', name=NameMap+"_old2")
#g.message(_("Finish backup"))
Modified: grass-addons/grass7/vector/v.class.mlpy/v.class.mlpy.html
===================================================================
--- grass-addons/grass7/vector/v.class.mlpy/v.class.mlpy.html 2014-10-28 23:11:08 UTC (rev 62460)
+++ grass-addons/grass7/vector/v.class.mlpy/v.class.mlpy.html 2014-10-28 23:15:59 UTC (rev 62461)
@@ -56,7 +56,7 @@
v.db.addtable map=points_known
# fill attribute tables
-MAPS=$(g.mlist type=rast pattern="lsat*" exclude="*87*" mapset=PERMANENT sep=" ")
+MAPS=$(g.list type=rast pattern="lsat*" exclude="*87*" mapset=PERMANENT sep=" ")
let NUM=0
for MAP in $MAPS
do
Modified: grass-addons/grass7/vector/v.surf.icw/v.surf.icw.py
===================================================================
--- grass-addons/grass7/vector/v.surf.icw/v.surf.icw.py 2014-10-28 23:11:08 UTC (rev 62460)
+++ grass-addons/grass7/vector/v.surf.icw/v.surf.icw.py 2014-10-28 23:15:59 UTC (rev 62461)
@@ -444,7 +444,7 @@
proc[num-1].wait()
# free up disk space ASAP
- #grass.run_command('g.remove', flags = 'f', rast = one_by_cost_site_sq, quiet = True)
+ #grass.run_command('g.remove', flags = 'f', type = 'rast', name = one_by_cost_site_sq, quiet = True)
num += 1
if num > n:
More information about the grass-commit
mailing list