瀏覽代碼

wxGUI: switch back from r.imprort/v.import to r.in.gdal/v.in.ogr

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66336 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 年之前
父節點
當前提交
abbe0ee122
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      gui/wxpython/modules/import_export.py

+ 4 - 4
gui/wxpython/modules/import_export.py

@@ -87,7 +87,7 @@ class ImportDialog(wx.Dialog):
                 continue
             elif cmd == 'r.external' and name not in ('o', 'e', 'r', 'h', 'v'):
                 continue
-            elif cmd == 'v.import':
+            elif cmd == 'v.in.ogr' and name not in ('c', 'z', 't', 'o', 'r', 'e', 'w'):
                 continue
             elif cmd == 'v.external' and name not in ('b'):
                 continue
@@ -103,7 +103,7 @@ class ImportDialog(wx.Dialog):
                 desc = p.get('description', '')
             if not name and not desc:
                 continue
-            if cmd == 'v.import' and name == 'encoding':
+            if cmd == 'v.in.ogr' and name == 'encoding':
                 self.options_par[name] = (_('Encoding'),
                                           wx.TextCtrl(parent = self.panel, id = wx.ID_ANY))
         
@@ -375,7 +375,7 @@ class GdalImportDialog(ImportDialog):
                            'output=%s' % output,
                            'layer=%s' % layer]
                 else:
-                    cmd = ['v.import',
+                    cmd = ['v.in.ogr',
                            'input=%s' % dsn,
                            'layer=%s' % layer,
                            'output=%s' % output]
@@ -452,7 +452,7 @@ class GdalImportDialog(ImportDialog):
                 return 'r.external'
         else:
             if self.ogr:
-                return 'v.import'
+                return 'v.in.ogr'
             else:
                 return 'r.import'