[GRASS-SVN] r65917 - grass/trunk/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 12 05:20:46 PDT 2015


Author: martinl
Date: 2015-08-12 05:20:46 -0700 (Wed, 12 Aug 2015)
New Revision: 65917

Modified:
   grass/trunk/gui/wxpython/modules/import_export.py
Log:
wxGUI: use r.import instead of r.in.gdal

Modified: grass/trunk/gui/wxpython/modules/import_export.py
===================================================================
--- grass/trunk/gui/wxpython/modules/import_export.py	2015-08-12 12:15:24 UTC (rev 65916)
+++ grass/trunk/gui/wxpython/modules/import_export.py	2015-08-12 12:20:46 UTC (rev 65917)
@@ -83,7 +83,7 @@
                 desc = f.get('description', '')
             if not name and not desc:
                 continue
-            if cmd == 'r.in.gdal' and name not in ('o', 'e', 'l', 'k'):
+            if cmd == 'r.import':
                 continue
             elif cmd == 'r.external' and name not in ('o', 'e', 'r', 'h', 'v'):
                 continue
@@ -408,7 +408,7 @@
                            'input=%s' % idsn,
                            'output=%s' % output]
                 else:
-                    cmd = ['r.in.gdal',
+                    cmd = ['r.import',
                            'input=%s' % idsn,
                            'output=%s' % output]
                     if nBands > 1:
@@ -456,7 +456,7 @@
             if self.ogr:
                 return 'v.import'
             else:
-                return 'r.in.gdal'
+                return 'r.import'
         
         return ''
 



More information about the grass-commit mailing list