[GRASS-dev] [GRASS GIS] #1846: Query vector map tool does not work

GRASS GIS trac at osgeo.org
Mon Jan 7 01:17:24 PST 2013


#1846: Query vector map tool does not work
------------------------+---------------------------------------------------
 Reporter:  pvanbosgeo  |       Owner:  grass-dev@…              
     Type:  defect      |      Status:  new                      
 Priority:  major       |   Milestone:  7.0.0                    
Component:  Default     |     Version:  svn-trunk                
 Keywords:              |    Platform:  Linux                    
      Cpu:  x86-64      |  
------------------------+---------------------------------------------------
 The query vector/raster map tool on a vector layer does not work. When
 clicking on a layer, the rendering bar in the map display window get's
 stuck somewhere on 50-75%. Moreover, the mouse cursor keeps on spinning
 when hovering over any GRASS window, also after I close the map display
 window (I thought it was related to the rendering of the map).

 I am working on GRASS 7 r54557 (but it started in a previous revision), on
 Ubuntu 12.10, with Python 2.7.3 and wxPython 2.8.12.1. I marked this as a
 major problem as this affects a key functionality i.m.h.o.

 The command line output when trying to query a vector layer is:


 Traceback (most recent call last):
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/map
 disp/mapwindow.py", line 969, in MouseActions

 self.OnLeftUp(event)
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/map
 disp/mapwindow.py", line 1164, in OnLeftUp

 self.frame.Query(self.mouse['begin'][0],self.mouse['begin'][
 1], layers)
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/map
 disp/frame.py", line 685, in Query

 self.QueryVector(east, north, qdist, posWindow, layers[0])
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/map
 disp/frame.py", line 837, in QueryVector

 self.MapWindow.UpdateMap(render = False, renderVector =
 False)
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/map
 disp/mapwindow.py", line 612, in UpdateMap

 self.mapfile = self.Map.Render(force = False, mapWindow =
 self.frame)
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/cor
 e/render.py", line 963, in Render

 maps, masks, opacities =
 self.GetMapsMasksAndOpacities(force, mapWindow, windres)
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/cor
 e/render.py", line 933, in GetMapsMasksAndOpacities

 return self._renderLayers(force, guiFrame)
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/cor
 e/render.py", line 901, in _renderLayers

 if not layer.Render():
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/cor
 e/render.py", line 148, in Render

 ret, msg = self._runCommand(c)
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/cor
 e/render.py", line 192, in _runCommand

 **self.cmd[1])
 IndexError
 :
 list index out of range

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1846>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list