[GRASS-SVN] r42295 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 18 08:33:55 EDT 2010


Author: martinl
Date: 2010-05-18 08:33:55 -0400 (Tue, 18 May 2010)
New Revision: 42295

Modified:
   grass/trunk/lib/vector/Vlib/write_ogr.c
Log:
vlib: add missing doxygen strings


Modified: grass/trunk/lib/vector/Vlib/write_ogr.c
===================================================================
--- grass/trunk/lib/vector/Vlib/write_ogr.c	2010-05-18 12:31:08 UTC (rev 42294)
+++ grass/trunk/lib/vector/Vlib/write_ogr.c	2010-05-18 12:33:55 UTC (rev 42295)
@@ -137,8 +137,19 @@
     return Map->fInfo.ogr.offset_num++;
 }
 
+/*!
+  \brief Writes feature on level 2
+
+  \param Map pointer to Map_info structure
+  \param type feature type
+  \param points pointer to line_pnts structure (feature geometry) 
+  \param cats pointer to line_cats structure (feature categories)
+  
+  \return feature offset into file
+  \return -1 on error
+*/
 off_t V2_write_line_ogr(struct Map_info *Map, int type,
-             const struct line_pnts *points, const struct line_cats *cats)
+			const struct line_pnts *points, const struct line_cats *cats)
 {
     int line;
     off_t offset;
@@ -147,10 +158,11 @@
 
     line = 0;
     
-    G_debug(3, "V2_write_line_nat()");
+    G_debug(3, "V2_write_line_ogr()");
     offset = V1_write_line_ogr(Map, type, points, cats);
     if (offset < 0)
 	return -1;
+    
     /* Update topology */
     plus = &(Map->plus);
     /* Add line */



More information about the grass-commit mailing list