Quellcode durchsuchen

wxGUI: update for renamed dsn parameter (trunk, https://trac.osgeo.org/grass/changeset/63330)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@63331 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler vor 10 Jahren
Ursprung
Commit
2263e16ddf
3 geänderte Dateien mit 9 neuen und 9 gelöschten Zeilen
  1. 2 2
      gui/wxpython/gis_set.py
  2. 5 5
      gui/wxpython/gui_core/dialogs.py
  3. 2 2
      gui/wxpython/gui_core/gselect.py

+ 2 - 2
gui/wxpython/gis_set.py

@@ -513,14 +513,14 @@ class GRASSStartup(wx.Frame):
         """
         """
         RunCommand('db.connect', flags='c')
         RunCommand('db.connect', flags='c')
         mapName = os.path.splitext(os.path.basename(filePath))[0]
         mapName = os.path.splitext(os.path.basename(filePath))[0]
-        vectors = RunCommand('v.in.ogr', dsn = filePath, flags = 'l',
+        vectors = RunCommand('v.in.ogr', input = filePath, flags = 'l',
                              read = True)
                              read = True)
         
         
         wx.BeginBusyCursor()
         wx.BeginBusyCursor()
         wx.Yield()
         wx.Yield()
         if mapName in vectors:
         if mapName in vectors:
             # vector detected
             # vector detected
-            returncode, error = RunCommand('v.in.ogr', dsn = filePath, output = mapName,
+            returncode, error = RunCommand('v.in.ogr', input = filePath, output = mapName,
                                            getErrorMsg = True)
                                            getErrorMsg = True)
         else:
         else:
             returncode, error = RunCommand('r.in.gdal', input = filePath, output = mapName,
             returncode, error = RunCommand('r.in.gdal', input = filePath, output = mapName,

+ 5 - 5
gui/wxpython/gui_core/dialogs.py

@@ -412,7 +412,7 @@ def CreateNewVector(parent, cmd, title = _('Create new vector map'),
                                    parent = parent,
                                    parent = parent,
                                    read = True,
                                    read = True,
                                    flags = 'l',
                                    flags = 'l',
-                                   dsn = vExternalOut['dsn']).splitlines()
+                                   input = vExternalOut['dsn']).splitlines()
     
     
     overwrite = False
     overwrite = False
     if not UserSettings.Get(group = 'cmd', key = 'overwrite', subkey = 'enabled') and \
     if not UserSettings.Get(group = 'cmd', key = 'overwrite', subkey = 'enabled') and \
@@ -446,7 +446,7 @@ def CreateNewVector(parent, cmd, title = _('Create new vector map'),
         RunCommand('v.external',
         RunCommand('v.external',
                    overwrite = overwrite,
                    overwrite = overwrite,
                    parent = parent,
                    parent = parent,
-                   dsn = vExternalOut['dsn'],
+                   input = vExternalOut['dsn'],
                    layer = outmap)
                    layer = outmap)
         
         
     # create attribute table
     # create attribute table
@@ -1891,12 +1891,12 @@ class GdalImportDialog(ImportDialog):
                     layer = layer.replace('.' + ext, '')
                     layer = layer.replace('.' + ext, '')
                 if self.link:
                 if self.link:
                     cmd = ['v.external',
                     cmd = ['v.external',
-                           'dsn=%s' % dsn,
+                           'input=%s' % dsn,
                            'output=%s' % output,
                            'output=%s' % output,
                            'layer=%s' % layer]
                            'layer=%s' % layer]
                 else:
                 else:
                     cmd = ['v.in.ogr',
                     cmd = ['v.in.ogr',
-                           'dsn=%s' % dsn,
+                           'input=%s' % dsn,
                            'layer=%s' % layer,
                            'layer=%s' % layer,
                            'output=%s' % output]
                            'output=%s' % output]
             else: # gdal
             else: # gdal
@@ -2041,7 +2041,7 @@ class GdalOutputDialog(wx.Dialog):
             
             
             RunCommand('v.external.out',
             RunCommand('v.external.out',
                        parent = self,
                        parent = self,
-                       dsn = dsn, format = frmt,
+                       output = dsn, format = frmt,
                        options = options)
                        options = options)
         self.Close()
         self.Close()
         
         

+ 2 - 2
gui/wxpython/gui_core/gselect.py

@@ -861,7 +861,7 @@ class LayerSelect(wx.ComboBox):
                              read = True,
                              read = True,
                              quiet = True,
                              quiet = True,
                              flags = 'l',
                              flags = 'l',
-                             dsn = dsn)
+                             input = dsn)
             if ret:
             if ret:
                 layers = ret.splitlines()
                 layers = ret.splitlines()
 
 
@@ -1921,7 +1921,7 @@ class GdalSelect(wx.Panel):
                              quiet = True,
                              quiet = True,
                              read = True,
                              read = True,
                              flags = 't',
                              flags = 't',
-                             dsn = dsn)
+                             input = dsn)
             if not ret:
             if not ret:
                 self.reloadDataRequired.emit(data=None)
                 self.reloadDataRequired.emit(data=None)
                 return
                 return