[geos-commits] [SCM] GEOS branch main updated. b17470d44d875fe23ba682ebe7d63602911eb2c5
git at osgeo.org
git at osgeo.org
Sat Jul 27 01:49:43 PDT 2024
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 b17470d44d875fe23ba682ebe7d63602911eb2c5 (commit)
from 4907d593aa6aa31c25dbe73933bf66995a04e498 (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 b17470d44d875fe23ba682ebe7d63602911eb2c5
Author: Mike Taves <mwtoews at gmail.com>
Date: Sat Jul 27 20:49:22 2024 +1200
Fix MaximumInscribedCircle::computeMaximumIterations for small values (#1133)
diff --git a/src/algorithm/construct/MaximumInscribedCircle.cpp b/src/algorithm/construct/MaximumInscribedCircle.cpp
index b20d14a08..c3a471078 100644
--- a/src/algorithm/construct/MaximumInscribedCircle.cpp
+++ b/src/algorithm/construct/MaximumInscribedCircle.cpp
@@ -85,9 +85,9 @@ MaximumInscribedCircle::computeMaximumIterations(const Geometry* geom, double to
double diam = geom->getEnvelopeInternal()->getDiameter();
double ncells = diam / toleranceDist;
//-- Using log of ncells allows control over number of iterations
- std::size_t factor = (std::size_t) std::log(ncells);
+ int factor = (int) std::log(ncells);
if (factor < 1) factor = 1;
- return 2000 + 2000 * factor;
+ return (std::size_t) (2000 + 2000 * factor);
}
/* public */
-----------------------------------------------------------------------
Summary of changes:
src/algorithm/construct/MaximumInscribedCircle.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list