[GRASS-SVN] r38967 - grass/branches/develbranch_6/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 4 10:19:24 EDT 2009


Author: benducke
Date: 2009-09-04 10:19:24 -0400 (Fri, 04 Sep 2009)
New Revision: 38967

Modified:
   grass/branches/develbranch_6/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/branches/develbranch_6/lib/vector/Vlib/level_two.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/Vlib/level_two.c	2009-09-04 14:16:54 UTC (rev 38966)
+++ grass/branches/develbranch_6/lib/vector/Vlib/level_two.c	2009-09-04 14:19:24 UTC (rev 38967)
@@ -84,6 +84,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
@@ -95,7 +108,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
@@ -107,7 +134,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