[GRASS-SVN] r70892 - in grass/trunk/gui/wxpython: gui_core modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Apr 17 11:12:01 PDT 2017


Author: martinl
Date: 2017-04-17 11:12:01 -0700 (Mon, 17 Apr 2017)
New Revision: 70892

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
   grass/trunk/gui/wxpython/modules/import_export.py
Log:
v.in.ogr GUI generates invalid layer parameter (see #3308)


Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2017-04-17 18:04:49 UTC (rev 70891)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2017-04-17 18:12:01 UTC (rev 70892)
@@ -2044,11 +2044,16 @@
 
                         def OnCheckItem(index, flag):
                             layers = list()
+                            geometry = None
                             for layer, match, listId in self.win1.GetLayers():
+                                if '|' in layer:
+                                    layer, geometry = layer.split('|', 1)
                                 layers.append(layer)
                             porf = self.task.get_param(
                                 'layer', element='name', raiseError=False)
                             porf['value'] = ','.join(layers)
+                            # geometry is currently discarded
+                            # TODO: v.import has no geometry option
                             self.OnUpdateValues()  # TODO: replace by signal
 
                         self.win1.OnCheckItem = OnCheckItem

Modified: grass/trunk/gui/wxpython/modules/import_export.py
===================================================================
--- grass/trunk/gui/wxpython/modules/import_export.py	2017-04-17 18:04:49 UTC (rev 70891)
+++ grass/trunk/gui/wxpython/modules/import_export.py	2017-04-17 18:12:01 UTC (rev 70892)
@@ -584,7 +584,7 @@
             else:
                 geometry = None
 
-                # TODO
+                # TODO: v.import has no geometry option
                 # if geometry:
                 #    cmd.append('geometry=%s' % geometry)
 



More information about the grass-commit mailing list