[GRASS-dev] [GRASS GIS] #1735: WXGUI attribute table manager doesn't meet with 1 normal form

GRASS GIS trac at osgeo.org
Tue Sep 18 09:36:37 PDT 2012


#1735: WXGUI attribute table manager doesn't meet with 1 normal form
-------------------------+--------------------------------------------------
 Reporter:  marisn       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:                           
Component:  wxGUI        |     Version:  svn-trunk                
 Keywords:               |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 WXGUI attribute table manager expects CAT column to be first one. (There's
 no left-to-right ordering to the columns.) If CAT is not the first column,
 zoom to feature functionality fails. Other functionality involving
 selected rows was not tested.

 {{{
 Traceback (most recent call last):
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
 linux-gnu/etc/gui/wxpython/dbmgr/base.py", line 1682, in
 OnDataDrawSelectedZoom

 self._drawSelected(zoom = True)
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
 linux-gnu/etc/gui/wxpython/dbmgr/base.py", line 1554, in
 _drawSelected

 cats = map(int, tlist.GetSelectedItems())
 ValueError
 :
 invalid literal for int() with base 10: '-0.358800000000002'
 }}}
 Here "-0.XXX' is value of a first column displayed in attribute manager.
 Database connection points to CAT column displayed as a second column.

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



More information about the grass-dev mailing list