[GRASS-SVN] r65966 - grass/trunk/lib/python/pygrass
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 18 08:18:32 PDT 2015
Author: zarch
Date: 2015-08-18 08:18:32 -0700 (Tue, 18 Aug 2015)
New Revision: 65966
Modified:
grass/trunk/lib/python/pygrass/utils.py
Log:
pygrass: doctest in utils file update the elevation value
Modified: grass/trunk/lib/python/pygrass/utils.py
===================================================================
--- grass/trunk/lib/python/pygrass/utils.py 2015-08-18 12:57:50 UTC (rev 65965)
+++ grass/trunk/lib/python/pygrass/utils.py 2015-08-18 15:18:32 UTC (rev 65966)
@@ -206,7 +206,7 @@
>>> sch = VectorTopo('myschools')
>>> sch.open(mode='r')
>>> get_raster_for_points(sch, ele) # doctest: +ELLIPSIS
- [(1, 633649.2856743174, 221412.94434781274, 141.01506), ...]
+ [(1, 633649.2856743174, 221412.94434781274, 145.06602), ...]
>>> sch.table.columns.add('elevation','double precision')
>>> 'elevation' in sch.table.columns
True
@@ -216,7 +216,7 @@
Filters(u'SELECT NAMESHORT, elevation FROM myschools;')
>>> cur = sch.table.execute()
>>> cur.fetchall() # doctest: +ELLIPSIS
- [(u'SWIFT CREEK', 141.01506), ... (u'9TH GRADE CTR', None)]
+ [(u'SWIFT CREEK', 145.06602), ... (u'9TH GRADE CTR', None)]
>>> remove('myschools','vect')
More information about the grass-commit
mailing list