[GRASS-SVN] r52212 - grass/trunk/lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 25 20:05:11 PDT 2012
Author: hamish
Date: 2012-06-25 20:05:11 -0700 (Mon, 25 Jun 2012)
New Revision: 52212
Modified:
grass/trunk/lib/python/vector.py
Log:
expand example
Modified: grass/trunk/lib/python/vector.py
===================================================================
--- grass/trunk/lib/python/vector.py 2012-06-26 02:57:31 UTC (rev 52211)
+++ grass/trunk/lib/python/vector.py 2012-06-26 03:05:11 UTC (rev 52212)
@@ -218,11 +218,11 @@
\code
>>> print grass.vector_db_select('lakes')['columns']
- (todo: paste in result)
+ ['cat', 'AREA', 'PERIMETER', 'FULL_HYDRO', 'FULL_HYDR2', 'FTYPE', 'FCODE', 'NAME']
>>> print grass.vector_db_select('lakes')['values'][3]
['3', '19512.86146', '708.44683', '4', '55652', 'LAKE/POND', '39000', '']
- >>> print grass.vector_db_select('lakes', column = 'cat')['values'][3]
- ['3']
+ >>> print grass.vector_db_select('lakes', column = 'FTYPE')['values'][3]
+ ['LAKE/POND']
\endcode
@param map map name
More information about the grass-commit
mailing list