Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#2920 closed defect (fixed)

"query raster/vector map(s)" tool does not work for raster maps

Reported by: veroandreo Owned by: grass-dev@…
Priority: normal Milestone: 7.2.0
Component: wxGUI Version: svn-trunk
Keywords: query tool Cc:
CPU: x86-64 Platform: Linux

Description

This is what I get in the Command console when I click over a raster map with the query tool:

Traceback (most recent call last):
  File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64
-pc-linux-gnu/gui/wxpython/mapwin/buffered.py", line 1236,
in MouseActions

self.OnLeftUp(event)
  File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64
-pc-linux-gnu/gui/wxpython/mapwin/buffered.py", line 1413,
in OnLeftUp

self.mapQueried.emit(x=self.mouse['end'][0],
y=self.mouse['end'][1])
  File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64
-pc-linux-gnu/etc/python/grass/pydispatch/signal.py", line
229, in emit

dispatcher.send(signal=self, *args, **kwargs)
  File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64
-pc-linux-gnu/etc/python/grass/pydispatch/dispatcher.py",
line 349, in send

**named
  File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64
-pc-linux-gnu/etc/python/grass/pydispatch/robustapply.py",
line 60, in robustApply

return receiver(*arguments, **named)
  File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64
-pc-linux-gnu/gui/wxpython/mapdisp/frame.py", line 870, in
Query

self.QueryMap(east, north, qdist, rast, vect)
  File "/home/veroandreo/software/grass-7.1.svn/dist.x86_64
-pc-linux-gnu/gui/wxpython/mapdisp/frame.py", line 919, in
QueryMap

if 'Category' in vectQuery[0]:
IndexError
:
list index out of range

For vector maps, however, it works as expected. It happens only in trunk (r67833). I also tested in release branch (r67789) but there it works fine. I use Fedora 23.

Change History (4)

comment:1 by martinl, 9 years ago

Milestone: 7.0.47.1.0

comment:2 by martinl, 9 years ago

Component: DisplaywxGUI

comment:3 by annakrat, 9 years ago

Resolution: fixed
Status: newclosed

Fixed in r67838.

comment:4 by neteler, 9 years ago

Milestone: 7.1.07.2.0

Milestone renamed

Note: See TracTickets for help on using tickets.