[GRASS-SVN] r73396 - grass/branches/releasebranch_7_6/lib/python/pygrass/vector

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 25 09:39:34 PDT 2018


Author: martinl
Date: 2018-09-25 09:39:34 -0700 (Tue, 25 Sep 2018)
New Revision: 73396

Modified:
   grass/branches/releasebranch_7_6/lib/python/pygrass/vector/__init__.py
Log:
pygrass: number_of() add support for boundaries and centroids (merge r73394 from trunk)

Modified: grass/branches/releasebranch_7_6/lib/python/pygrass/vector/__init__.py
===================================================================
--- grass/branches/releasebranch_7_6/lib/python/pygrass/vector/__init__.py	2018-09-25 16:36:06 UTC (rev 73395)
+++ grass/branches/releasebranch_7_6/lib/python/pygrass/vector/__init__.py	2018-09-25 16:39:34 UTC (rev 73396)
@@ -29,6 +29,8 @@
           "kernels": libvect.Vect_get_num_kernels,
           "points": (libvect.Vect_get_num_primitives, libvect.GV_POINT),
           "lines": (libvect.Vect_get_num_primitives, libvect.GV_LINE),
+          "centroids": (libvect.Vect_get_num_primitives, libvect.GV_CENTROID),
+          "boundaries": (libvect.Vect_get_num_primitives, libvect.GV_BOUNDARY),
           "nodes": libvect.Vect_get_num_nodes,
           "updated_lines": libvect.Vect_get_num_updated_lines,
           "updated_nodes": libvect.Vect_get_num_updated_nodes,
@@ -343,8 +345,9 @@
 
         :param vtype: the name of type to query; the supported values are:
                       *areas*, *dblinks*, *faces*, *holes*, *islands*,
-                      *kernels*, *line_points*, *lines*, *nodes*, *points*,
-                      *update_lines*, *update_nodes*, *volumes*
+                      *kernels*, *points*, *lines*, *centroids*, *boundaries*,
+                      *nodes*, *line_points*, *update_lines*, *update_nodes*,
+                      *volumes*
         :type vtype: str
 
             >>> test_vect = VectorTopo(test_vector_name)



More information about the grass-commit mailing list