[geos-commits] [SCM] GEOS branch main updated. f84966acecc6decd2aee2e7b26af83f50c6ccac3

git at osgeo.org git at osgeo.org
Mon Sep 18 19:10:43 PDT 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, main has been updated
       via  f84966acecc6decd2aee2e7b26af83f50c6ccac3 (commit)
      from  a9071dd7341ccac164e3754474f23aedae3582b4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f84966acecc6decd2aee2e7b26af83f50c6ccac3
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Mon Sep 18 19:09:22 2023 -0700

    Remove debug prints

diff --git a/src/operation/distance/IndexedFacetDistance.cpp b/src/operation/distance/IndexedFacetDistance.cpp
index 8866b0d1e..d49012088 100644
--- a/src/operation/distance/IndexedFacetDistance.cpp
+++ b/src/operation/distance/IndexedFacetDistance.cpp
@@ -66,19 +66,17 @@ IndexedFacetDistance::isWithinDistance(const Geometry* g, double maxDistance) co
     if (envDist > maxDistance) {
         return false;
     }
-//*
+
     //-- heuristic: for atomic indexed geom, test distance to envelope of test geom
     if (baseGeometry.getNumGeometries() == 1
         && ! g->getEnvelopeInternal()->contains(baseGeometry.getEnvelopeInternal()))
     {
         auto env2 = g->getEnvelope();
-std::cout << "env dist = " << distance(env2.get()) << std::endl;
         if (distance(env2.get()) > maxDistance) {
-std::cout << "env dist > maxdistance of " << maxDistance << std::endl;
             return false;
         }
     }
-//*/
+
     auto tree2 = FacetSequenceTreeBuilder::build(g);
     return cachedTree->isWithinDistance<FacetDistance>(*tree2, maxDistance);
 }
diff --git a/tests/unit/operation/distance/IndexedFacetDistanceTest.cpp b/tests/unit/operation/distance/IndexedFacetDistanceTest.cpp
index a08eb9887..5b6f0cb73 100644
--- a/tests/unit/operation/distance/IndexedFacetDistanceTest.cpp
+++ b/tests/unit/operation/distance/IndexedFacetDistanceTest.cpp
@@ -88,7 +88,6 @@ struct test_facetdistanceop_data {
 
         IndexedFacetDistance ifd(g1.get());
         bool result = ifd.isWithinDistance(g2.get(), distance);
-std::cout << "result = " << result << "  expected = " << expected << std::endl;
         ensure_equals(result, expected);
     }
 

-----------------------------------------------------------------------

Summary of changes:
 src/operation/distance/IndexedFacetDistance.cpp            | 6 ++----
 tests/unit/operation/distance/IndexedFacetDistanceTest.cpp | 1 -
 2 files changed, 2 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list