]> granicus.if.org Git - postgis/commitdiff
Bring epsilon fix to minimum bounding circle back to 2.4 (closes #3930)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 20 Dec 2017 14:30:19 +0000 (14:30 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 20 Dec 2017 14:30:19 +0000 (14:30 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@16166 b70326c6-7e19-0410-871a-916f4a2858ee

NEWS
liblwgeom/lwboundingcircle.c

diff --git a/NEWS b/NEWS
index 527276f08f86b261a203a893613ff5c8e48287f1..738f48fe9ca197a777c2bbe3df9796ca8074b606 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,8 @@ PostGIS 2.4.3
   - #3713, Support encodings that happen to output a '\' character
   - #3827, Set configure default to not do interrupt testing,
           was causing false negatives for many people
+  - #3930, Minimum bounding circle issues on 32-bit platforms
+
  * Enhancements *
   - #3944, Update to EPSG register v9.2 (Even Rouault)
 
index 1cdbe41ff51d2acef3ceebf47e43bb53b4f5bee8..ba6bc40d79a7efdc0769192bc7fcbc31cad9a0d9 100644 (file)
@@ -87,7 +87,7 @@ point_inside_circle(const POINT2D* p, const LWBOUNDINGCIRCLE* c)
        if (!c)
                return LW_FALSE;
 
-       if (distance2d_pt_pt(p, c->center) > c->radius)
+       if (distance2d_pt_pt(p, c->center) - c->radius > DBL_EPSILON)
                return LW_FALSE;
 
        return LW_TRUE;