[GRASS-dev] [GRASS GIS] #2920: "query raster/vector map(s)" tool does not work for raster maps

GRASS GIS trac at osgeo.org
Mon Feb 15 13:05:10 PST 2016


#2920: "query raster/vector map(s)" tool does not work for raster maps
------------------------+-------------------------
 Reporter:  veroandreo  |      Owner:  grass-dev@…
     Type:  defect      |     Status:  new
 Priority:  normal      |  Milestone:  7.0.4
Component:  Display     |    Version:  svn-trunk
 Keywords:  query tool  |        CPU:  x86-64
 Platform:  Linux       |
------------------------+-------------------------
 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.

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



More information about the grass-dev mailing list