[GRASS-dev] [GRASS GIS] #1469: wxgui vector query doesn't work for maps without attribute table

GRASS GIS trac at osgeo.org
Sun Oct 16 13:48:29 EDT 2011


#1469: wxgui vector query doesn't work for maps without attribute table
-------------------------+--------------------------------------------------
 Reporter:  marisn       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:                           
Component:  wxGUI        |     Version:  svn-trunk                
 Keywords:               |    Platform:  All                      
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 Import vector data set without attribute data. Add to layer manager.
 Select it. Choose "query" tool in map display. Click on vector object:
 {{{
 Traceback (most recent call last):
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
 linux-gnu/etc/gui/wxpython/gui_modules/mapdisp_window.py",
 line 1114, in MouseActions

 self.OnLeftUp(event)
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
 linux-gnu/etc/gui/wxpython/gui_modules/mapdisp_window.py",
 line 1304, in OnLeftUp

 self.parent.QueryVector(self.mouse['begin'][0],
 self.mouse['begin'][1])
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
 linux-gnu/etc/gui/wxpython/gui_modules/mapdisp.py", line
 1081, in QueryVector

 action = mode)
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
 linux-gnu/etc/gui/wxpython/gui_modules/dbm_dialogs.py", line
 363, in UpdateDialog

 query[1])
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
 linux-gnu/etc/gui/wxpython/gui_modules/dbm_base.py", line
 104, in SelectByPoint

 table = data[0]['Table']
 KeyError
 :
 'Table'
 }}}
 Expected results: query tool should report geometry properties, object id
 etc. and not fail with cryptic error.

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



More information about the grass-dev mailing list