[GRASS-dev] [GRASS GIS] #1651: Map display Query Vector tool fails

GRASS GIS trac at osgeo.org
Thu May 3 09:50:52 EDT 2012


#1651: Map display Query Vector tool fails
-------------------------+--------------------------------------------------
 Reporter:  vincent      |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  6.4.3                    
Component:  wxGUI        |     Version:  svn-releasebranch64      
 Keywords:  queryvector  |    Platform:  Linux                    
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 When simply displaying a contour line vector, the Query Tool (this located
 in the map display toolbar) works fine, i.e. in my case one can access z
 values stored in the related attribute table. Attributes are stored in a
 postgres DB.
 Then I change the display rule for the map, e.g. only showing major
 contour lines, via this 'where' argument :

 {{{
 z % 50 = 0
 }}}

 Now the Query Tool fails, giving this error message :

 {{{
 Traceback (most recent call last):
   File "/usr/local/grass-6.4.3svn/etc/wxpython/mapdisp/mapwi
 ndow.py", line 904, in MouseActions

 self.OnLeftUp(event)
   File "/usr/local/grass-6.4.3svn/etc/wxpython/mapdisp/mapwi
 ndow.py", line 1105, in OnLeftUp

 self.parent.QueryVector(self.mouse['begin'][0],
 self.mouse['begin'][1])
   File
 "/usr/local/grass-6.4.3svn/etc/wxpython/mapdisp/frame.py",
 line 809, in QueryVector

 qlayer = self.AddTmpVectorMapLayer(mapName, cats, useId =
 False)
   File
 "/usr/local/grass-6.4.3svn/etc/wxpython/mapdisp/frame.py",
 line 862, in AddTmpVectorMapLayer

 parg,pval = p.split('=')
 ValueError
 :
 too many values to unpack
 }}}

 Invoking a more "sql-basical" condition (e.g. z > 1800), this error does
 not happen.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1651>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list