From: Sandro Santilli Date: Thu, 24 Feb 2011 15:45:32 +0000 (+0000) Subject: Improve precision of point_in_ring_rtree too (bug #845). X-Git-Tag: 2.0.0alpha1~1942 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61b1f9ad2859e54ff08b725e8b1fceae5af11693;p=postgis Improve precision of point_in_ring_rtree too (bug #845). git-svn-id: http://svn.osgeo.org/postgis/trunk@6859 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_functions_analytic.c b/postgis/lwgeom_functions_analytic.c index 9fe037492..935670177 100644 --- a/postgis/lwgeom_functions_analytic.c +++ b/postgis/lwgeom_functions_analytic.c @@ -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.");