[GRASS-SVN] r49524 - grass-addons/grass6/vector/v.strahler

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 4 16:16:25 EST 2011


Author: hamish
Date: 2011-12-04 13:16:25 -0800 (Sun, 04 Dec 2011)
New Revision: 49524

Modified:
   grass-addons/grass6/vector/v.strahler/main.c
   grass-addons/grass6/vector/v.strahler/strahler.c
Log:
minor whitespace

Modified: grass-addons/grass6/vector/v.strahler/main.c
===================================================================
--- grass-addons/grass6/vector/v.strahler/main.c	2011-12-04 21:05:20 UTC (rev 49523)
+++ grass-addons/grass6/vector/v.strahler/main.c	2011-12-04 21:16:25 UTC (rev 49524)
@@ -109,9 +109,7 @@
     txout_opt->description =
 	_("Path to ASCII file where results will be written");
 
-
     /* option sloppy for bad topology */
-
     sloppy_opt = G_define_option();
     sloppy_opt->key = "sloppy";
     sloppy_opt->type = TYPE_DOUBLE;
@@ -121,13 +119,13 @@
     sloppy_opt->description =
 	_("Threshold for distance within different nodes are considered the same node - may not work");
 
-
     field_opt = G_define_standard_option(G_OPT_V_FIELD);
     field = atoi(field_opt->answer);
 
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 
+
     Vect_check_input_output_name(input->answer, output->answer,
 				 GV_FATAL_EXIT);
 

Modified: grass-addons/grass6/vector/v.strahler/strahler.c
===================================================================
--- grass-addons/grass6/vector/v.strahler/strahler.c	2011-12-04 21:05:20 UTC (rev 49523)
+++ grass-addons/grass6/vector/v.strahler/strahler.c	2011-12-04 21:16:25 UTC (rev 49524)
@@ -29,7 +29,7 @@
     G_debug(1, "Reached StrahFindLeaves with %d trees", ntrees);
 
     G_get_window(&window);
-    G_debug(2, "window: N %f S %f W %f E %f\n", window.north, window.south,
+    G_debug(2, "window: N %f S %f W %f E %f", window.north, window.south,
 	    window.west, window.east);
 
     G_debug(2, "%d nodes in map", nnodes);
@@ -66,7 +66,7 @@
 						0, method);
 	    }
 
-	    G_debug(5, "fdrast=%d node=%d y=%f x=%f z=%f\n", fdrast, node, y,
+	    G_debug(5, "fdrast=%d node=%d y=%f x=%f z=%f", fdrast, node, y,
 		    x, z);
 
 	    tree = dbbuf[aline].bsnid;
@@ -189,8 +189,7 @@
 		if (norder > 1 || norder == 0) {	/* if (norder > 1: node indeterminate OR norder == 0 : subtree finished) */
 		    G_debug(3, "Finished run at line %d because norder=%d",
 			    cline, norder);
-		    G_debug(4, "visiting unode %d for line %d\n", unode,
-			    cline);
+		    G_debug(4, "visiting unode %d for line %d", unode, cline);
 		    nodev[unode].visited += 1;	/* visit unode, for the sake of completeness */
 		    rfinish = 1;	/* finish this run */
 



More information about the grass-commit mailing list