Procházet zdrojové kódy

v.build opt=dump does not report the Z coord (https://trac.osgeo.org/grass/ticket/1194)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43897 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa před 14 roky
rodič
revize
83b0cffd5b
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      lib/vector/Vlib/build.c

+ 4 - 4
lib/vector/Vlib/build.c

@@ -284,7 +284,7 @@ int Vect_save_topo(struct Map_info *Map)
    \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 @@ int Vect_topo_dump(const struct Map_info *Map, FILE * out)
     const struct Plus_head *plus;
 
     plus = &(Map->plus);
-
+    
     fprintf(out, "---------- TOPOLOGY DUMP ----------\n");
 
     /* box */
@@ -310,8 +310,8 @@ int Vect_topo_dump(const struct Map_info *Map, FILE * out)
 	    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)];