[GRASS-dev] [GRASS GIS] #1651: Map display Query Vector tool fails

GRASS GIS trac at osgeo.org
Sun Aug 26 03:22:32 PDT 2012


#1651: Map display Query Vector tool fails
---------------------------+------------------------------------------------
 Reporter:  vincent        |       Owner:  grass-dev@…              
     Type:  defect         |      Status:  new                      
 Priority:  normal         |   Milestone:  6.4.3                    
Component:  wxGUI          |     Version:  svn-releasebranch64      
 Keywords:  query, vector  |    Platform:  Linux                    
      Cpu:  Unspecified    |  
---------------------------+------------------------------------------------

Comment(by vincent):

 Replying to [comment:1 neteler]:
 > Can you please retry with a current 6.4.svn version?

 Ok for db driver case.

 But same contour map created against pg driver returns an error on
 request.

 Loading the map in the display, right-mouse to define Properties ->
 Selection -> WHERE -> cast(level as decimal) % 10 = 0

 There is no error on display, ie the sql filter works.
 But when you want to query the map (display window : query raster/vector
 map(s) tool), it fails, returning this error :


 {{{
 Traceback (most recent call last):
   File "/usr/local/grass-6.4.3svn/etc/wxpython/mapdisp/mapwi
 ndow.py", line 914, in MouseActions

 self.OnLeftUp(event)
   File "/usr/local/grass-6.4.3svn/etc/wxpython/mapdisp/mapwi
 ndow.py", line 1120, in OnLeftUp

 self.parent.Query(self.mouse['begin'][0],self.mouse['begin']
 [1], layers)
   File
 "/usr/local/grass-6.4.3svn/etc/wxpython/mapdisp/frame.py",
 line 681, in Query

 self.QueryVector(east, north, qdist, posWindow, layers[0])
   File
 "/usr/local/grass-6.4.3svn/etc/wxpython/mapdisp/frame.py",
 line 827, in QueryVector

 qlayer = self.AddTmpVectorMapLayer(mapName, cats, useId =
 False)
   File
 "/usr/local/grass-6.4.3svn/etc/wxpython/mapdisp/frame.py",
 line 880, in AddTmpVectorMapLayer

 parg,pval = p.split('=')
 ValueError
 :
 too many values to unpack

 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1651#comment:2>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list