[GRASS-SVN] r51438 - grass-addons/grass6/raster/mcda/r.mcda.roughset

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 14 03:55:36 EDT 2012


Author: gianluca
Date: 2012-04-14 00:55:36 -0700 (Sat, 14 Apr 2012)
New Revision: 51438

Modified:
   grass-addons/grass6/raster/mcda/r.mcda.roughset/r.mcda.roughset.py
Log:


Modified: grass-addons/grass6/raster/mcda/r.mcda.roughset/r.mcda.roughset.py
===================================================================
--- grass-addons/grass6/raster/mcda/r.mcda.roughset/r.mcda.roughset.py	2012-04-14 07:26:35 UTC (rev 51437)
+++ grass-addons/grass6/raster/mcda/r.mcda.roughset/r.mcda.roughset.py	2012-04-14 07:55:36 UTC (rev 51438)
@@ -522,17 +522,16 @@
         grass.mapcalc(mappa +"=" +formula)
         i+=1
     mapstring=",".join(maps)
-    
-    print mapstring
      
-    for m in mapstring:
+    for m in maps:
+	print "mappa:", m
         grass.run_command("r.to.vect", overwrite='True', flags='s', input=m, output=m, feature='area')
         grass.run_command("v.db.addcol", map=m, columns='rule varchar(25)')
         grass.run_command("v.db.update", map=m, column='rule', value=m)
     grass.run_command("v.patch", overwrite='True', flags='e', input=mapstring, output=outputMap)
     
     grass.run_command("g.remove",  rast=mapstring)
-    grass.run_command("g.remove",  vect=mapstring)
+    #grass.run_command("g.remove",  vect=mapstring)
 
 
     return 0



More information about the grass-commit mailing list