[GRASS-SVN] r54657 - grass-addons/grass7/raster/r.agent/libagent

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 15 15:58:57 PST 2013


Author: mic
Date: 2013-01-15 15:58:57 -0800 (Tue, 15 Jan 2013)
New Revision: 54657

Modified:
   grass-addons/grass7/raster/r.agent/libagent/grassland.py
Log:
write out to new grass map

Modified: grass-addons/grass7/raster/r.agent/libagent/grassland.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/grassland.py	2013-01-15 23:51:48 UTC (rev 54656)
+++ grass-addons/grass7/raster/r.agent/libagent/grassland.py	2013-01-15 23:58:57 UTC (rev 54657)
@@ -90,4 +90,8 @@
             grassmapname = self.grassmapnames[layername]
             layer = self.layers[layername]
             layer.write(grassmapname, overwrite=force)
+    def writelayerasnew(self, layername, grassmapname):
+        if self.layers.has_key(layername):
+            layer = self.layers[layername]
+            layer.write(grassmapname)
 



More information about the grass-commit mailing list