#2479: query raster/vector map(s) does not work with vector layers
-------------------------+--------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.1.0
Component: Default | Version: svn-trunk
Keywords: | Platform: Linux
Cpu: Unspecified |
-------------------------+--------------------------------------------------
The query raster/vector map(s) function does not work with vector layers.
Clicking anywhere on the vector layer returns nothing except the following
in the command console:
{{{
Traceback (most recent call last):
File "/usr/local/grass7/grass-7.1.svn/gui/wxpython/mapwin/
buffered.py", line 1206, in MouseActions
self.OnLeftUp(event)
File "/usr/local/grass7/grass-7.1.svn/gui/wxpython/mapwin/
buffered.py", line 1383, in OnLeftUp
self.mapQueried.emit(x=self.mouse['end'][0],
y=self.mouse['end'][1])
File "/usr/local/grass7/grass-7.1.svn/etc/python/grass/pyd
ispatch/signal.py", line 229, in emit
dispatcher.send(signal=self, *args, **kwargs)
File "/usr/local/grass7/grass-7.1.svn/etc/python/grass/pyd
ispatch/dispatcher.py", line 349, in send
**named
File "/usr/local/grass7/grass-7.1.svn/etc/python/grass/pyd
ispatch/robustapply.py", line 60, in robustApply
return receiver(*arguments, **named)
File "/usr/local/grass7/grass-7.1.svn/gui/wxpython/mapdisp
/frame.py", line 834, in Query
self.QueryMap(east, north, qdist, rast, vect)
File "/usr/local/grass7/grass-7.1.svn/gui/wxpython/mapdisp
/frame.py", line 872, in QueryMap
encoding=encoding)
File "/usr/local/grass7/grass-7.1.svn/etc/python/grass/scr
ipt/vector.py", line 380, in vector_what
result = json.loads(ret, **kwargs)
File "/usr/lib/python2.7/json/__init__.py", line 351, in
loads
return cls(encoding=encoding, **kw).decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in
decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in
raw_decode
obj, end = self.scan_once(s, idx)
ValueError
:
Expecting , delimiter: line 1 column 28 (char 27)
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2479>
GRASS GIS <http://grass.osgeo.org>