[GRASS-SVN] r46903 - grass/trunk/lib/vector/neta

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jul 1 04:54:19 EDT 2011


Author: mmetz
Date: 2011-07-01 01:54:19 -0700 (Fri, 01 Jul 2011)
New Revision: 46903

Modified:
   grass/trunk/lib/vector/neta/utils.c
Log:
remove bounding boxes from vector topology (Radim's TODO): update neta

Modified: grass/trunk/lib/vector/neta/utils.c
===================================================================
--- grass/trunk/lib/vector/neta/utils.c	2011-07-01 08:54:05 UTC (rev 46902)
+++ grass/trunk/lib/vector/neta/utils.c	2011-07-01 08:54:19 UTC (rev 46903)
@@ -73,11 +73,14 @@
 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);
 }
 
 /*!



More information about the grass-commit mailing list