[GRASS-dev] [GRASS GIS] #3291: Zoom to selected feature not working when cat is not the first column

GRASS GIS trac at osgeo.org
Sun Feb 19 18:14:28 PST 2017


#3291: Zoom to selected feature not working when cat is not the first column
--------------------+-------------------------
 Reporter:  hcho    |      Owner:  grass-dev@…
     Type:  defect  |     Status:  new
 Priority:  normal  |  Milestone:  7.2.1
Component:  wxGUI   |    Version:  svn-trunk
 Keywords:          |        CPU:  x86-64
 Platform:  Linux   |
--------------------+-------------------------
 When cat is not the first column in the attribute table, select and zoom
 to feature in the attribute table manger does not work. In the Console
 table, I can see the following traceback:

 {{{
 Traceback (most recent call last):
   File "dist.x86_64-pc-linux-
 gnu/gui/wxpython/dbmgr/base.py", line 1923, in
 OnDataDrawSelectedZoom

 self._drawSelected(zoom=True)
   File "dist.x86_64-pc-linux-
 gnu/gui/wxpython/dbmgr/base.py", line 1779, in _drawSelected

 cats = map(int, fn())
 ValueError
 :
 invalid literal for int() with base 10: '3215929.3665139'
 }}}

 The key column is not always the first column, so this assumption should
 be avoided.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3291>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list