[GRASS-SVN] r44773 - grass/branches/develbranch_6/lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 29 13:53:11 EST 2010
Author: martinl
Date: 2010-12-29 10:53:10 -0800 (Wed, 29 Dec 2010)
New Revision: 44773
Modified:
grass/branches/develbranch_6/lib/python/vector.py
Log:
pythonlib: fix vector_what() - no `layer` parameter in GRASS6
Modified: grass/branches/develbranch_6/lib/python/vector.py
===================================================================
--- grass/branches/develbranch_6/lib/python/vector.py 2010-12-29 18:33:18 UTC (rev 44772)
+++ grass/branches/develbranch_6/lib/python/vector.py 2010-12-29 18:53:10 UTC (rev 44773)
@@ -267,9 +267,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]))
@@ -281,7 +279,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