[GRASS-SVN] r54407 - grass/trunk/gui/wxpython/iclass

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 26 03:10:22 PST 2012


Author: annakrat
Date: 2012-12-26 03:10:21 -0800 (Wed, 26 Dec 2012)
New Revision: 54407

Modified:
   grass/trunk/gui/wxpython/iclass/frame.py
Log:
wxGUI/iclass: accept mapset in the exported vector map name

Modified: grass/trunk/gui/wxpython/iclass/frame.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/frame.py	2012-12-26 11:01:58 UTC (rev 54406)
+++ grass/trunk/gui/wxpython/iclass/frame.py	2012-12-26 11:10:21 UTC (rev 54407)
@@ -635,6 +635,9 @@
         # close, build, copy and open again the temporary vector
         displayDriver = self.GetFirstWindow().digit.GetDisplay()
         displayDriver.CloseMap()
+
+        if '@' in vectorName:
+            vectorName = vectorName.split('@')[0]
         RunCommand('g.copy',
                     vect = ','.join([self.trainingAreaVector, vectorName]),
                     overwrite = True)



More information about the grass-commit mailing list