Opened 14 years ago

Closed 13 years ago

#897 closed defect (fixed)

WinGrass: error with "Query vector map (edit mode)"

Reported by: hellik Owned by: grass-dev@…
Priority: normal Milestone: 6.4.0
Component: wxGUI Version: svn-releasebranch64
Keywords: wingrass, GUI, vector Cc:
CPU: x86-32 Platform: MSWindows Vista

Description

if querying a vector in edit mode, there is following error message (tested with self compiled grass64svn living in the osgeo4w-stack and with a self build WinGrass-Installation living in c:\Program Files\GRASS-64-SVN)

C:\Program Files\GRASS-64-SVN:

Traceback (most recent call last):
  File "C:\Program
Files\GRASS-64-SVN\etc\wxpython\gui_modules\mapdisp.py",
line 1092, in MouseActions

self.OnLeftUp(event)
  File "C:\Program
Files\GRASS-64-SVN\etc\wxpython\gui_modules\mapdisp.py",
line 1474, in OnLeftUp

self.parent.QueryVector(self.mouse['begin'][0],
self.mouse['begin'][1])
  File "C:\Program
Files\GRASS-64-SVN\etc\wxpython\gui_modules\mapdisp.py",
line 3636, in QueryVector

action="update")
  File "C:\Program
Files\GRASS-64-SVN\etc\wxpython\gui_modules\dbm.py", line
2964, in __init__

self.UpdateDialog(query=query, cats=cats)
  File "C:\Program
Files\GRASS-64-SVN\etc\wxpython\gui_modules\dbm.py", line
3206, in UpdateDialog

cat = int(data['Category'][idx])
KeyError
:
'Category'

c:\OSGeo4W\apps\grass\grass-6.4.0svn

Traceback (most recent call last):
  File "c:\OSGeo4W\apps\grass\grass-6.4.0svn\etc\wxpython\gu
i_modules\mapdisp.py", line 1092, in MouseActions

self.OnLeftUp(event)
  File "c:\OSGeo4W\apps\grass\grass-6.4.0svn\etc\wxpython\gu
i_modules\mapdisp.py", line 1474, in OnLeftUp

self.parent.QueryVector(self.mouse['begin'][0],
self.mouse['begin'][1])
  File "c:\OSGeo4W\apps\grass\grass-6.4.0svn\etc\wxpython\gu
i_modules\mapdisp.py", line 3636, in QueryVector

action="update")
  File "c:\OSGeo4W\apps\grass\grass-6.4.0svn\etc\wxpython\gu
i_modules\dbm.py", line 2964, in __init__

self.UpdateDialog(query=query, cats=cats)
  File "c:\OSGeo4W\apps\grass\grass-6.4.0svn\etc\wxpython\gu
i_modules\dbm.py", line 3206, in UpdateDialog

cat = int(data['Category'][idx])
KeyError
:
'Category'

Change History (2)

in reply to:  description comment:1 by hellik, 14 years ago

Replying to hellik:

if querying a vector in edit mode, there is following error message (tested with self compiled grass64svn living in the osgeo4w-stack and with a self build WinGrass-Installation living in c:\Program Files\GRASS-64-SVN)

C:\Program Files\GRASS-64-SVN:

Traceback (most recent call last):
  File "C:\Program
Files\GRASS-64-SVN\etc\wxpython\gui_modules\mapdisp.py",
line 1092, in MouseActions

self.OnLeftUp(event)
  File "C:\Program
Files\GRASS-64-SVN\etc\wxpython\gui_modules\mapdisp.py",
line 1474, in OnLeftUp

self.parent.QueryVector(self.mouse['begin'][0],
self.mouse['begin'][1])
  File "C:\Program
Files\GRASS-64-SVN\etc\wxpython\gui_modules\mapdisp.py",
line 3636, in QueryVector

action="update")
  File "C:\Program
Files\GRASS-64-SVN\etc\wxpython\gui_modules\dbm.py", line
2964, in __init__

self.UpdateDialog(query=query, cats=cats)
  File "C:\Program
Files\GRASS-64-SVN\etc\wxpython\gui_modules\dbm.py", line
3206, in UpdateDialog

cat = int(data['Category'][idx])
KeyError
:
'Category'

c:\OSGeo4W\apps\grass\grass-6.4.0svn

Traceback (most recent call last):
  File "c:\OSGeo4W\apps\grass\grass-6.4.0svn\etc\wxpython\gu
i_modules\mapdisp.py", line 1092, in MouseActions

self.OnLeftUp(event)
  File "c:\OSGeo4W\apps\grass\grass-6.4.0svn\etc\wxpython\gu
i_modules\mapdisp.py", line 1474, in OnLeftUp

self.parent.QueryVector(self.mouse['begin'][0],
self.mouse['begin'][1])
  File "c:\OSGeo4W\apps\grass\grass-6.4.0svn\etc\wxpython\gu
i_modules\mapdisp.py", line 3636, in QueryVector

action="update")
  File "c:\OSGeo4W\apps\grass\grass-6.4.0svn\etc\wxpython\gu
i_modules\dbm.py", line 2964, in __init__

self.UpdateDialog(query=query, cats=cats)
  File "c:\OSGeo4W\apps\grass\grass-6.4.0svn\etc\wxpython\gu
i_modules\dbm.py", line 3206, in UpdateDialog

cat = int(data['Category'][idx])
KeyError
:
'Category'

tested with WinGRASS-6.4.SVN-r42833-1-Setup.exe in a WinVista32-box.

the wxgui is freezing with "Query vector map (edit mode)".

Helmut

comment:2 by hellik, 13 years ago

Resolution: fixed
Status: newclosed

fixed.

Note: See TracTickets for help on using tickets.