[GRASS-dev] [GRASS GIS] #2431: vector_what fails with multiple layer/cat

GRASS GIS trac at osgeo.org
Thu Nov 6 08:20:53 PST 2014

#2431: vector_what fails with multiple layer/cat
 Reporter:  artegion       |       Owner:  grass-dev@…              
     Type:  defect         |      Status:  new                      
 Priority:  major          |   Milestone:  7.0.0                    
Component:  Vector         |     Version:  svn-releasebranch70      
 Keywords:  query, v.what  |    Platform:  All                      
      Cpu:  Unspecified    |  

Comment(by mmetz):

 Replying to [comment:3 annakrat]:
 > Replying to [comment:2 annakrat]:
 > > I attached a patch which adds new flag to v.what to print json and
 simplifies vector_what to load json. I still need to test it more but I
 would welcome if anyone could test it too on different types of vector
 data with or without attributes.
 > Done in r62469. Testing welcome.

 Not working in RHEL 6.x and derivates with python 2.6.6:
 `object_pairs_hook` is not a valid argument.

 result = json.loads(ret, object_pairs_hook=orderedDict)
   File "/usr/lib64/python2.6/json/__init__.py", line 318, in

 return cls(encoding=encoding, **kw).decode(s)
 __init__() got an unexpected keyword argument

Ticket URL: <https://trac.osgeo.org/grass/ticket/2431#comment:4>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list