Forráskód Böngészése

sync Vect_point_in_area() to the other Vect_point_in_*() functions: update v.distance

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47017 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 14 éve
szülő
commit
211d13866c
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      vector/v.distance/main.c

+ 2 - 2
vector/v.distance/main.c

@@ -504,7 +504,7 @@ int main(int argc, char *argv[])
     TPoints = Vect_new_line_struct();
     FCats = Vect_new_cats_struct();
     TCats = Vect_new_cats_struct();
-    List = Vect_new_boxlist(0);
+    List = Vect_new_boxlist(1);
 
     /* Allocate space ( may be more than needed (duplicate cats and elements without cats) ) */
     nfrom = Vect_get_num_lines(&From);
@@ -822,7 +822,7 @@ int main(int argc, char *argv[])
 		    Vect_get_area_points(&To, area, TPoints);
 
 		    /* Find the distance to this area */
-		    if (Vect_point_in_area(&To, area, FPoints->x[0], FPoints->y[0])) {	/* in area */
+		    if (Vect_point_in_area(FPoints->x[0], FPoints->y[0], &To, area, List->box[i])) {	/* in area */
 			tmp_dist = 0;
 			tmp_tx = FPoints->x[0];
 			tmp_ty = FPoints->y[0];