[GRASS-SVN] r65177 - grass/branches/releasebranch_7_0/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun May 3 02:52:52 PDT 2015
Author: martinl
Date: 2015-05-03 02:52:52 -0700 (Sun, 03 May 2015)
New Revision: 65177
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI: fix importing vectors with one geometry column
(merge r65176 from trunk)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py 2015-05-03 09:46:44 UTC (rev 65176)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/dialogs.py 2015-05-03 09:52:52 UTC (rev 65177)
@@ -1902,8 +1902,9 @@
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)
More information about the grass-commit
mailing list