[GRASS-SVN] r45051 - grass/trunk/lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 15 18:58:24 EST 2011
Author: martinl
Date: 2011-01-15 15:58:24 -0800 (Sat, 15 Jan 2011)
New Revision: 45051
Modified:
grass/trunk/lib/python/pythonlib.dox
Log:
update sample python script
Modified: grass/trunk/lib/python/pythonlib.dox
===================================================================
--- grass/trunk/lib/python/pythonlib.dox 2011-01-15 23:55:13 UTC (rev 45050)
+++ grass/trunk/lib/python/pythonlib.dox 2011-01-15 23:58:24 UTC (rev 45051)
@@ -63,10 +63,8 @@
import grass.script as grass
def main():
- info = grass.parse_command('v.info',
- flags = 't',
- map = options['map'])
- if info['map3d'] == '1':
+ info = grass.vector_info_topo(map = options['map'])
+ if info['map3d']:
print 'Vector map is 3D'
else:
print 'Vector map is 2D'
More information about the grass-commit
mailing list