[GRASS-SVN] r64485 - grass/branches/releasebranch_6_4/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 6 12:33:08 PST 2015


Author: mmetz
Date: 2015-02-06 12:33:08 -0800 (Fri, 06 Feb 2015)
New Revision: 64485

Modified:
   grass/branches/releasebranch_6_4/lib/vector/Vlib/poly.c
Log:
Vlib: fix Vect_point_in_*()

Modified: grass/branches/releasebranch_6_4/lib/vector/Vlib/poly.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/vector/Vlib/poly.c	2015-02-06 20:14:28 UTC (rev 64484)
+++ grass/branches/releasebranch_6_4/lib/vector/Vlib/poly.c	2015-02-06 20:33:08 UTC (rev 64485)
@@ -636,7 +636,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;
+		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