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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 13 16:05:18 EDT 2010


Author: martinl
Date: 2010-10-13 13:05:17 -0700 (Wed, 13 Oct 2010)
New Revision: 43897

Modified:
   grass/trunk/lib/vector/Vlib/build.c
Log:
v.build opt=dump does not report the Z coord (#1194)


Modified: grass/trunk/lib/vector/Vlib/build.c
===================================================================
--- grass/trunk/lib/vector/Vlib/build.c	2010-10-13 19:41:18 UTC (rev 43896)
+++ grass/trunk/lib/vector/Vlib/build.c	2010-10-13 20:05:17 UTC (rev 43897)
@@ -284,7 +284,7 @@
    \return 1 on success
    \return 0 on error
  */
-int Vect_topo_dump(const struct Map_info *Map, FILE * out)
+int Vect_topo_dump(const struct Map_info *Map, FILE *out)
 {
     int i, j, line, isle;
     struct P_node *Node;
@@ -295,7 +295,7 @@
     const struct Plus_head *plus;
 
     plus = &(Map->plus);
-
+    
     fprintf(out, "---------- TOPOLOGY DUMP ----------\n");
 
     /* box */
@@ -310,8 +310,8 @@
 	    continue;
 	}
 	Node = plus->Node[i];
-	fprintf(out, "node = %d, n_lines = %d, xy = %f, %f\n", i,
-		Node->n_lines, Node->x, Node->y);
+	fprintf(out, "node = %d, n_lines = %d, xyz = %f, %f, %f\n", i,
+		Node->n_lines, Node->x, Node->y, Node->z);
 	for (j = 0; j < Node->n_lines; j++) {
 	    line = Node->lines[j];
 	    Line = plus->Line[abs(line)];



More information about the grass-commit mailing list