From: Paul Ramsey Date: Wed, 20 Dec 2017 14:30:19 +0000 (+0000) Subject: Bring epsilon fix to minimum bounding circle back to 2.4 (closes #3930) X-Git-Tag: 2.4.3rc1~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec6baaa58b692b074b2b37552c83415300daf166;p=postgis Bring epsilon fix to minimum bounding circle back to 2.4 (closes #3930) git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@16166 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/NEWS b/NEWS index 527276f08..738f48fe9 100644 --- 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) diff --git a/liblwgeom/lwboundingcircle.c b/liblwgeom/lwboundingcircle.c index 1cdbe41ff..ba6bc40d7 100644 --- a/liblwgeom/lwboundingcircle.c +++ b/liblwgeom/lwboundingcircle.c @@ -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;