[GRASS-SVN] r35483 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 18 12:33:21 EST 2009


Author: martinl
Date: 2009-01-18 12:33:20 -0500 (Sun, 18 Jan 2009)
New Revision: 35483

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
Log:
wxGUI: regenerate mapfile
       (merge from relbr64, r35482)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2009-01-18 17:27:28 UTC (rev 35482)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2009-01-18 17:33:20 UTC (rev 35483)
@@ -139,9 +139,17 @@
                 gcmd.RunCommand('d.mon',
                                 start = 'cairo')
         else:
+            if not self.mapfile:
+                self.gtemp = tempfile.mkstemp()[1]
+                self.maskfile = self.gtemp + ".pgm"
+                if self.type == 'overlay':
+                    self.mapfile  = self.gtemp + ".png"
+                else:
+                    self.mapfile  = self.gtemp + ".ppm"
+
             if self.mapfile:
                 os.environ["GRASS_PNGFILE"] = self.mapfile
-                
+        
         #
         # execute command
         #



More information about the grass-commit mailing list