Browse Source

wxGUI: fix importing vectors with one geometry column
(merge https://trac.osgeo.org/grass/changeset/65176 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@65177 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 10 years ago
parent
commit
29d33a864e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      gui/wxpython/gui_core/dialogs.py

+ 3 - 2
gui/wxpython/gui_core/dialogs.py

@@ -1902,8 +1902,9 @@ class GdalImportDialog(ImportDialog):
                     cmd = ['v.in.ogr',
                            'input=%s' % dsn,
                            'layer=%s' % layer,
-                           'output=%s' % output,
-                           'geometry=%s' % geometry]
+                           'output=%s' % output]
+                    if geometry:
+                        cmd.append('geometry=%s' % geometry)
             else: # gdal
                 if self.dsnInput.GetType() == 'dir':
                     idsn = os.path.join(dsn, layer)