[GRASS-SVN] r65176 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun May 3 02:46:44 PDT 2015
Author: martinl
Date: 2015-05-03 02:46:44 -0700 (Sun, 03 May 2015)
New Revision: 65176
Modified:
grass/trunk/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI: fix importing vectors with one geometry column
Modified: grass/trunk/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/dialogs.py 2015-05-02 21:27:12 UTC (rev 65175)
+++ grass/trunk/gui/wxpython/gui_core/dialogs.py 2015-05-03 09:46:44 UTC (rev 65176)
@@ -1918,8 +1918,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