Pārlūkot izejas kodu

remove bounding boxes from vector topology (Radim's TODO): update neta

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46903 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 14 gadi atpakaļ
vecāks
revīzija
7399e5c5ad
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      lib/vector/neta/utils.c

+ 4 - 1
lib/vector/neta/utils.c

@@ -73,11 +73,14 @@ void NetA_add_point_on_node(struct Map_info *In, struct Map_info *Out,
 void NetA_points_to_nodes(struct Map_info *In, struct ilist *point_list)
 {
     int i, node;
+    struct line_pnts *Points = Vect_new_line_struct();
 
     for (i = 0; i < point_list->n_values; i++) {
-	Vect_get_line_nodes(In, point_list->value[i], &node, NULL);
+	/* Vect_get_line_nodes(In, point_list->value[i], &node, NULL); */
+	node = Vect_find_node(In, Points->x[0], Points->y[0], Points->z[0], 0, 0);
 	point_list->value[i] = node;
     }
+    Vect_destroy_line_struct(Points);
 }
 
 /*!