[GRASS-SVN] r64201 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 15 12:54:29 PST 2015


Author: mmetz
Date: 2015-01-15 12:54:29 -0800 (Thu, 15 Jan 2015)
New Revision: 64201

Modified:
   grass/trunk/lib/vector/Vlib/poly.c
Log:
Vlib: fix segments_x_ray(), Vect_point_in_poly() and Vect_point_in_area_outer_ring() must return the same result

Modified: grass/trunk/lib/vector/Vlib/poly.c
===================================================================
--- grass/trunk/lib/vector/Vlib/poly.c	2015-01-15 20:46:13 UTC (rev 64200)
+++ grass/trunk/lib/vector/Vlib/poly.c	2015-01-15 20:54:29 UTC (rev 64201)
@@ -633,7 +633,7 @@
 	    x_inter = dig_x_intersect(x1, x2, y1, y2, Y);
 	    G_debug(3, "x_inter = %f", x_inter);
 	    if (x_inter == X)
-		return 1;	/* point on segment, but assume inside ? */
+		return -1;	/* point on segment, do not assume inside/outside */
 	    else if (x_inter > X)
 		n_intersects++;
 



More information about the grass-commit mailing list