]> granicus.if.org Git - postgis/commitdiff
Improve precision of point_in_ring_rtree too (bug #845).
authorSandro Santilli <strk@keybit.net>
Thu, 24 Feb 2011 15:45:32 +0000 (15:45 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 24 Feb 2011 15:45:32 +0000 (15:45 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6859 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_functions_analytic.c

index 9fe0374929ab7cfc618072e7b68bb91346b0c73b..9356701771e10a6552aab8aa125416197641e0ec 100644 (file)
@@ -1061,12 +1061,13 @@ int point_in_ring_rtree(RTREE_NODE *root, POINT2D *point)
                                return 0;
                        }
                }
+
                /*
                 * If the point is to the left of the line, and it's rising,
                 * then the line is to the right of the point and
                 * circling counter-clockwise, so incremement.
                 */
-               else if (FP_CONTAINS_BOTTOM(seg1.y,point->y,seg2.y) && side>0)
+               if (FP_CONTAINS_BOTTOM(seg1.y,point->y,seg2.y) && side>0)
                {
                        LWDEBUG(3, "incrementing winding number.");