[GRASS-SVN] r33154 - grass/trunk/vector/v.what

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 29 05:12:20 EDT 2008


Author: martinl
Date: 2008-08-29 05:12:20 -0400 (Fri, 29 Aug 2008)
New Revision: 33154

Modified:
   grass/trunk/vector/v.what/what.c
Log:
v.what returns "Line:" attribute for points and centroids, trac #267
(merge from devbr6, r33153)


Modified: grass/trunk/vector/v.what/what.c
===================================================================
--- grass/trunk/vector/v.what/what.c	2008-08-29 09:10:13 UTC (rev 33153)
+++ grass/trunk/vector/v.what/what.c	2008-08-29 09:12:20 UTC (rev 33154)
@@ -133,7 +133,7 @@
 		fprintf(stdout, "Looking for features within: %f \n",
 			maxdist);
 		fprintf(stdout,
-			_("Line: %d  \nType: %s  \nLeft: %d  \nRight: %d  \n"),
+			_("Id: %d  \nType: %s  \nLeft: %d  \nRight: %d  \n"),
 			line, buf, left, right);
 		if (type & GV_LINES) {
 		    nnodes = 2;
@@ -161,7 +161,7 @@
 			    Vect_get_node_line(&(Map[i]), node[n], nli);
 			angle =
 			    Vect_get_node_line_angle(&(Map[i]), node[n], nli);
-			fprintf(stdout, _("Line: %5d  \nAngle: %.8f\n"),
+			fprintf(stdout, _("Id: %5d  \nAngle: %.8f\n"),
 				nodeline, angle);
 		    }
 		}
@@ -169,7 +169,7 @@
 	    }
 	    else {
 		fprintf(stdout, _("Type: %s"), buf);
-		fprintf(stdout, _("Line: %d\n"), line);
+		fprintf(stdout, _("Id: %d\n"), line);
 		if (type & GV_LINES)
 		    fprintf(stdout, _("Length: %f\n"), l);
 	    }



More information about the grass-commit mailing list