[GRASS-SVN] r64202 - grass/branches/releasebranch_7_0/lib/vector/Vlib

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


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

Modified:
   grass/branches/releasebranch_7_0/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/branches/releasebranch_7_0/lib/vector/Vlib/poly.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/vector/Vlib/poly.c	2015-01-15 20:54:29 UTC (rev 64201)
+++ grass/branches/releasebranch_7_0/lib/vector/Vlib/poly.c	2015-01-15 20:54:42 UTC (rev 64202)
@@ -629,7 +629,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