Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions include/grass/defs/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ int Vect_tin_get_z(struct Map_info *, double, double, double *, double *,

/* int Vect_point_in_islands (struct Map_info *, int, double, double); */
int Vect_find_poly_centroid(const struct line_pnts *, double *, double *);
int Vect_find_poly_centroid_cog(const struct line_pnts *,
const struct line_pnts **, int, double *,
double *);
int Vect__intersect_line_with_poly(const struct line_pnts *, double,
struct line_pnts *);
int Vect_get_point_in_area(struct Map_info *, int, double *, double *);
Expand Down
4 changes: 3 additions & 1 deletion lib/vector/Vlib/find.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ int Vect_find_area(struct Map_info *Map, double x, double y)
G_debug(3, " area = %d Vect_point_in_area_outer_ring() = %d", area,
ret);

if (ret >= 1) {
/* the point must be really inside (ret = 1), not on the boundary (ret =
* 2) */
if (ret == 1) {
/* check if in islands */
Area = Plus->Area[area];
for (j = 0; j < Area->n_isles; j++) {
Expand Down
Loading
Loading