[GRASS-SVN] r68796 - in grass/trunk/gui/wxpython: gui_core modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 29 18:02:29 PDT 2016


Author: annakrat
Date: 2016-06-29 18:02:29 -0700 (Wed, 29 Jun 2016)
New Revision: 68796

Modified:
   grass/trunk/gui/wxpython/gui_core/gselect.py
   grass/trunk/gui/wxpython/modules/import_export.py
Log:
wxGUI: fix importing files from directory and fix adding multiple bands to display after import

Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py	2016-06-29 23:02:05 UTC (rev 68795)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py	2016-06-30 01:02:29 UTC (rev 68796)
@@ -2142,7 +2142,7 @@
                         dsn, "%s") % self._getExtPatternGlob(ext)):
                     baseName = os.path.basename(filename)
                     grassName = GetValidLayerName(baseName.split('.', -1)[0])
-                    projectionMatch = hasRastSameProjAsLocation(dsn)
+                    projectionMatch = hasRastSameProjAsLocation(filename)
                     projectionMatchCaption = getProjMatchCaption(
                         projectionMatch)
                     listData.append(

Modified: grass/trunk/gui/wxpython/modules/import_export.py
===================================================================
--- grass/trunk/gui/wxpython/modules/import_export.py	2016-06-29 23:02:05 UTC (rev 68795)
+++ grass/trunk/gui/wxpython/modules/import_export.py	2016-06-30 01:02:29 UTC (rev 68796)
@@ -430,11 +430,11 @@
             if nBands < 0:
                 GWarning(_("Unable to determine number of raster bands"),
                          parent=self)
-            nBands = 1
+                nBands = 1
 
             userData['nbands'] = nBands
             cmd = self.getSettingsPageCmd()
-            cmd.append('input=%s' % dsn)
+            cmd.append('input=%s' % idsn)
             cmd.append('output=%s' % output)
 
             if self.overwrite.IsChecked():



More information about the grass-commit mailing list