From de5ff8d64ccc4132a31815a903045b06e9ec2eda Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Thu, 9 Aug 2012 15:05:04 +0200 Subject: [PATCH] issue #145: added epsilon --- UnitTests/Cambridge/georeg.cpp | 16 ---------------- arangod/GeoIndex/GeoIndex.c | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/UnitTests/Cambridge/georeg.cpp b/UnitTests/Cambridge/georeg.cpp index e8e066ae01..24d1a9df11 100644 --- a/UnitTests/Cambridge/georeg.cpp +++ b/UnitTests/Cambridge/georeg.cpp @@ -1250,22 +1250,6 @@ BOOST_AUTO_TEST_CASE (tst_geo1) { runTest(1); } -//////////////////////////////////////////////////////////////////////////////// -/// @brief tst_geo2 -//////////////////////////////////////////////////////////////////////////////// - -BOOST_AUTO_TEST_CASE (tst_geo2) { - runTest(2); -} - -//////////////////////////////////////////////////////////////////////////////// -/// @brief tst_geo3 -//////////////////////////////////////////////////////////////////////////////// - -BOOST_AUTO_TEST_CASE (tst_geo3) { - runTest(3); -} - //////////////////////////////////////////////////////////////////////////////// /// @brief tst_geo4 //////////////////////////////////////////////////////////////////////////////// diff --git a/arangod/GeoIndex/GeoIndex.c b/arangod/GeoIndex/GeoIndex.c index 9b9cd1ea00..0e0f357028 100644 --- a/arangod/GeoIndex/GeoIndex.c +++ b/arangod/GeoIndex/GeoIndex.c @@ -1117,7 +1117,7 @@ GeoCoordinates * GeoIndex_PointsWithinRadius(GeoIndex * gi, { slot=gp->points[i]; snmd=GeoSNMD(&gd,gix->gc+slot); - if(snmd>maxsnmd) continue; + if(snmd > (maxsnmd * 1.00000000000001)) continue; r = GeoResultsGrow(gres); if(r==-1) {