[GRASS-dev] [GRASS GIS] #921: Error querying vector map in wxpython Map Display window

GRASS GIS trac at osgeo.org
Wed Feb 10 13:21:38 EST 2010


#921: Error querying vector map in wxpython Map Display window
---------------------+------------------------------------------------------
 Reporter:  epatton  |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect   |      Status:  new                      
 Priority:  normal   |   Milestone:  6.5.0                    
Component:  wxGUI    |     Version:  svn-develbranch6         
 Keywords:           |    Platform:  Linux                    
      Cpu:  x86-64   |  
---------------------+------------------------------------------------------
 I get the following error after clicking on a vector in the Map Display
 window using the 'Query raster/vector map(s)' button:

 {{{
 Traceback (most recent call last):
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
 pdisp_window.py", line 1078, in MouseActions

 self.OnLeftUp(event)
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
 pdisp_window.py", line 1881, in OnLeftUp

 self.parent.QueryVector(self.mouse['begin'][0],
 self.mouse['begin'][1])
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
 pdisp.py", line 1473, in QueryVector

 action="update")
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/db
 m_dialogs.py", line 106, in __init__

 self.UpdateDialog(query=query, cats=cats)
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/db
 m_dialogs.py", line 415, in UpdateDialog

 for idx in range(len(columns[key]['values'])):
 KeyError
 :
 'cat'

 }}}

 Raster querying using the same tool works ok, though. I'm not sure if this
 is related to the other bug I just posted today about not being able to
 query my vector databases.

 ~ Eric.

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


More information about the grass-dev mailing list