[GRASS-SVN] r29650 - grass/trunk/vector/v.distance

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 10 03:48:33 EST 2008


Author: neteler
Date: 2008-01-10 03:48:33 -0500 (Thu, 10 Jan 2008)
New Revision: 29650

Modified:
   grass/trunk/vector/v.distance/main.c
Log:
added percentage output

Modified: grass/trunk/vector/v.distance/main.c
===================================================================
--- grass/trunk/vector/v.distance/main.c	2008-01-10 08:11:33 UTC (rev 29649)
+++ grass/trunk/vector/v.distance/main.c	2008-01-10 08:48:33 UTC (rev 29650)
@@ -483,6 +483,7 @@
 	    double tmp_tangle, tangle;
 
 	    G_debug (3, "fline = %d", fline);
+	    G_percent (fline, nfrom, 2);
 	    ftype = Vect_read_line ( &From, FPoints, FCats, fline );
 	    if ( !(ftype & from_type) ) continue;
 
@@ -591,6 +592,7 @@
     if ( to_type & GV_AREA ) {
 	for ( fline = 1; fline <= nfrom ; fline++ ) {
 	    G_debug (3, "fline = %d", fline);
+	    G_percent (fline, nfrom, 2);
 	    ftype = Vect_read_line ( &From, FPoints, FCats, fline );
 	    if ( !(ftype & from_type) ) continue;
 



More information about the grass-commit mailing list