[GRASS-SVN] r33280 - in grass-addons/vector: v.buffer2 v.parallel2

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 5 10:04:15 EDT 2008


Author: rmatev
Date: 2008-09-05 10:04:15 -0400 (Fri, 05 Sep 2008)
New Revision: 33280

Modified:
   grass-addons/vector/v.buffer2/vlib_buffer.c
   grass-addons/vector/v.parallel2/vlib_buffer.c
Log:
Added debug messages

Modified: grass-addons/vector/v.buffer2/vlib_buffer.c
===================================================================
--- grass-addons/vector/v.buffer2/vlib_buffer.c	2008-09-05 13:26:43 UTC (rev 33279)
+++ grass-addons/vector/v.buffer2/vlib_buffer.c	2008-09-05 14:04:15 UTC (rev 33280)
@@ -786,6 +786,7 @@
     arrPoints = NULL;
     
     /* outer contour */
+    G_debug(3, "    processing outer contour");
     *oPoints = Vect_new_line_struct();
     if (auto_side)
         side = get_polygon_orientation(area_outer->x, area_outer->y, area_outer->n_points-1)?LEFT_SIDE:RIGHT_SIDE;
@@ -809,6 +810,7 @@
     pg_destroy_struct(pg2);
     
     /* inner contours */
+    G_debug(3, "    processing inner contours");
     for (i = 0; i < isles_count; i++) {
         if (auto_side)
             side = get_polygon_orientation(area_isles[i]->x, area_isles[i]->y, area_isles[i]->n_points-1)?RIGHT_SIDE:LEFT_SIDE;
@@ -842,6 +844,8 @@
     Vect_destroy_line_struct(sPoints);
     Vect_destroy_line_struct(cPoints);
     
+    G_debug(3, "buffer_lines() ... done");
+    
     return;
 }
 

Modified: grass-addons/vector/v.parallel2/vlib_buffer.c
===================================================================
--- grass-addons/vector/v.parallel2/vlib_buffer.c	2008-09-05 13:26:43 UTC (rev 33279)
+++ grass-addons/vector/v.parallel2/vlib_buffer.c	2008-09-05 14:04:15 UTC (rev 33280)
@@ -786,6 +786,7 @@
     arrPoints = NULL;
     
     /* outer contour */
+    G_debug(3, "    processing outer contour");
     *oPoints = Vect_new_line_struct();
     if (auto_side)
         side = get_polygon_orientation(area_outer->x, area_outer->y, area_outer->n_points-1)?LEFT_SIDE:RIGHT_SIDE;
@@ -809,6 +810,7 @@
     pg_destroy_struct(pg2);
     
     /* inner contours */
+    G_debug(3, "    processing inner contours");
     for (i = 0; i < isles_count; i++) {
         if (auto_side)
             side = get_polygon_orientation(area_isles[i]->x, area_isles[i]->y, area_isles[i]->n_points-1)?RIGHT_SIDE:LEFT_SIDE;
@@ -842,6 +844,8 @@
     Vect_destroy_line_struct(sPoints);
     Vect_destroy_line_struct(cPoints);
     
+    G_debug(3, "buffer_lines() ... done");
+    
     return;
 }
 



More information about the grass-commit mailing list