Changeset 66460
- Timestamp:
- Oct 9, 2015, 5:02:55 PM (9 years ago)
- Location:
- grass/trunk/vector/v.distance
- Files:
-
- 2 added
- 2 edited
-
distance.c (modified) (2 diffs)
-
main.c (modified) (1 diff)
-
testsuite (added)
-
testsuite/test_areas_points.py (added)
Legend:
- Unmodified
- Added
- Removed
-
grass/trunk/vector/v.distance/distance.c
r61979 r66460 290 290 all_outside_inner = 1; 291 291 292 int in_box; 292 293 for (i = 0; i < Points->n_points; i++) { 293 if (Vect_point_in_box(Points->x[i], Points->y[i], 294 Points->z[i], abox)) { 294 if (with_z) 295 in_box = Vect_point_in_box(Points->x[i], Points->y[i], 296 Points->z[i], abox); 297 else 298 in_box = Vect_point_in_box_2d(Points->x[i], Points->y[i], abox); 299 if (in_box) { 295 300 296 301 int poly; … … 324 329 325 330 for (j = 0; j < nisles; j++) { 326 if (Vect_point_in_box(Points->x[i], Points->y[i], Points->z[i], 327 &ibox[j])) { 331 if (with_z) 332 in_box = Vect_point_in_box(Points->x[i], Points->y[i], 333 Points->z[i], &ibox[j]); 334 else 335 in_box = Vect_point_in_box_2d(Points->x[i], 336 Points->y[i], &ibox[j]); 337 if (in_box) { 328 338 329 339 poly = Vect_point_in_poly(Points->x[i], Points->y[i], iPoints[j]); -
grass/trunk/vector/v.distance/main.c
r66426 r66460 14 14 * PURPOSE: Calculates distance from a point to nearest feature in vector layer. 15 15 * 16 * COPYRIGHT: (C) 2002-201 2by the GRASS Development Team16 * COPYRIGHT: (C) 2002-2015 by the GRASS Development Team 17 17 * 18 18 * This program is free software under the
Note:
See TracChangeset
for help on using the changeset viewer.
