[GRASS-SVN] r73394 - grass/trunk/lib/python/pygrass/vector
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 25 09:07:41 PDT 2018
Author: martinl
Date: 2018-09-25 09:07:41 -0700 (Tue, 25 Sep 2018)
New Revision: 73394
Modified:
grass/trunk/lib/python/pygrass/vector/__init__.py
Log:
pygrass: number_of() add support for boundaries and centroids
Modified: grass/trunk/lib/python/pygrass/vector/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/__init__.py 2018-09-25 14:13:05 UTC (rev 73393)
+++ grass/trunk/lib/python/pygrass/vector/__init__.py 2018-09-25 16:07:41 UTC (rev 73394)
@@ -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