[GRASS-SVN] r44774 - grass/branches/releasebranch_6_4/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 29 13:54:43 EST 2010


Author: martinl
Date: 2010-12-29 10:54:42 -0800 (Wed, 29 Dec 2010)
New Revision: 44774

Modified:
   grass/branches/releasebranch_6_4/lib/python/vector.py
Log:
pythonlib: fix vector_what() - no `layer` parameter in GRASS6
(merge r44773 from devbr6)


Modified: grass/branches/releasebranch_6_4/lib/python/vector.py
===================================================================
--- grass/branches/releasebranch_6_4/lib/python/vector.py	2010-12-29 18:53:10 UTC (rev 44773)
+++ grass/branches/releasebranch_6_4/lib/python/vector.py	2010-12-29 18:54:42 UTC (rev 44774)
@@ -268,9 +268,7 @@
         name_list = [name]
     else:
         name_list = name
-    
-    layer_list = ['-1'] * len(name_list)
-    
+        
     coord_list = list()
     if type(coord) is types.TupleType:
         coord_list.append('%f,%f' % (coord[0], coord[1]))
@@ -282,7 +280,6 @@
                        quiet      = True,
                        flags      = 'ag',
                        map        = ','.join(name_list),
-                       layer      = ','.join(layer_list),
                        east_north = ','.join(coord_list),
                        distance   = float(distance))
     



More information about the grass-commit mailing list