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

#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&gt;
GRASS GIS <https://grass.osgeo.org>

#3291: Zoom to selected feature not working when cat is not the first column
------------------------+-------------------------
  Reporter: hcho | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.2.1
Component: wxGUI | Version: svn-trunk
Resolution: duplicate | Keywords:
       CPU: x86-64 | Platform: Linux
------------------------+-------------------------
Changes (by marisn):

* status: new => closed
* resolution: => duplicate

Comment:

This is a long known problem: #1735

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3291#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>