[GRASS-SVN] r65953 - grass/trunk/lib/python/pygrass/vector

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 17 22:58:19 PDT 2015


Author: zarch
Date: 2015-08-17 22:58:19 -0700 (Mon, 17 Aug 2015)
New Revision: 65953

Modified:
   grass/trunk/lib/python/pygrass/vector/__init__.py
Log:
pygrass: vector, revert r62034, add points to the _NUMOF dictionary and fix doctests examples

Modified: grass/trunk/lib/python/pygrass/vector/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/__init__.py	2015-08-18 05:22:35 UTC (rev 65952)
+++ grass/trunk/lib/python/pygrass/vector/__init__.py	2015-08-18 05:58:19 UTC (rev 65953)
@@ -24,6 +24,7 @@
           "holes": libvect.Vect_get_num_holes,
           "islands": libvect.Vect_get_num_islands,
           "kernels": libvect.Vect_get_num_kernels,
+          "points": libvect.Vect_get_num_lines,
           "lines": libvect.Vect_get_num_lines,
           "nodes": libvect.Vect_get_num_nodes,
           "updated_lines": libvect.Vect_get_num_updated_lines,
@@ -239,7 +240,7 @@
     Open a vector map using the *with statement*: ::
 
         >>> with VectorTopo('schools', mode='r') as schools:
-        ...     for school in schools[:3]:
+        ...     for school in schools[:4]:
         ...         print school.attrs['NAMESHORT']
         ...
         SWIFT CREEK
@@ -263,7 +264,7 @@
 
             >>> cens = VectorTopo('census')
             >>> cens.open(mode='r')
-            >>> cens[:3]
+            >>> cens[:4]
             [Boundary(v_id=1), Boundary(v_id=2), Boundary(v_id=3)]
             >>> cens.close()
 



More information about the grass-commit mailing list