[GRASS-SVN] r38968 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 4 10:20:51 EDT 2009
Author: benducke
Date: 2009-09-04 10:20:51 -0400 (Fri, 04 Sep 2009)
New Revision: 38968
Modified:
grass/trunk/lib/vector/Vlib/level_two.c
Log:
Added implementations for API functions to get number of kernels, volumes and holes for a vector map
Modified: grass/trunk/lib/vector/Vlib/level_two.c
===================================================================
--- grass/trunk/lib/vector/Vlib/level_two.c 2009-09-04 14:19:24 UTC (rev 38967)
+++ grass/trunk/lib/vector/Vlib/level_two.c 2009-09-04 14:20:51 UTC (rev 38968)
@@ -83,6 +83,19 @@
}
/*!
+ \brief Fetch number of kernels in vector map
+
+ \param map vector map
+
+ \return number of kernels
+ */
+int Vect_get_num_kernels(struct Map_info *map)
+{
+ return (map->plus.n_klines);
+}
+
+
+/*!
\brief Get number of faces in vector map
\param map vector map
@@ -94,7 +107,21 @@
return (map->plus.n_flines);
}
+
/*!
+ \brief Fetch number of volumes in vector map
+
+ \param map vector map
+
+ \return number of volumes
+ */
+int Vect_get_num_volumes(struct Map_info *map)
+{
+ return (map->plus.n_volumes);
+}
+
+
+/*!
\brief Get number of islands in vector map
\param map vector map
@@ -106,7 +133,21 @@
return (map->plus.n_isles);
}
+
/*!
+ \brief Fetch number of holes in vector map
+
+ \param map vector map
+
+ \return number of holes
+ */
+int Vect_get_num_holes(struct Map_info *map)
+{
+ return (map->plus.n_holes);
+}
+
+
+/*!
\brief Get number of defined dblinks
\param map vector map
More information about the grass-commit
mailing list