[GRASS-SVN] r38214 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 4 16:28:38 EDT 2009


Author: martinl
Date: 2009-07-04 16:28:38 -0400 (Sat, 04 Jul 2009)
New Revision: 38214

Modified:
   grass/trunk/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: determine map layer name


Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py	2009-07-04 17:46:20 UTC (rev 38213)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py	2009-07-04 20:28:38 UTC (rev 38214)
@@ -355,7 +355,17 @@
                     return None
 
                 # add layer into layer tree
+                if cmdlist[0] == 'd.rast':
+                    lname = utils.GetLayerNameFromCmd(cmdlist, fullyQualified = True,
+                                                      layerType = 'raster')
+                elif cmdlist[0] == 'd.vect':
+                    lname = utils.GetLayerNameFromCmd(cmdlist, fullyQualified = True,
+                                                      layerType = 'vector')
+                else:
+                    lname = None
+                
                 self.parent.curr_page.maptree.AddLayer(ltype=layertype,
+                                                       lname=lname,
                                                        lcmd=cmdlist)
 
             else:



More information about the grass-commit mailing list