[geos-commits] [SCM] GEOS branch 3.13 updated. f24cf635c8322754695a479c9a9858cb6e15d562
git at osgeo.org
git at osgeo.org
Mon Jan 13 12:13:24 PST 2025
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, 3.13 has been updated
via f24cf635c8322754695a479c9a9858cb6e15d562 (commit)
via 7b8aef8a35a4d67f0b96b597dad65d0a02621554 (commit)
via 7761c9e1ff0053ebd1f74795dc756a2d4ccee35d (commit)
from 5af0c221ed9b61a2e21a7d121716c9e3aa6acd39 (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 f24cf635c8322754695a479c9a9858cb6e15d562
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Mon Jan 13 12:12:47 2025 -0800
News entry for GH-1225
diff --git a/NEWS.md b/NEWS.md
index ae2ecbb85..64da1ba82 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -10,6 +10,7 @@
- Fix BufferOp to increase length of segments removed by heuristic (GH-1200, Martin Davis)
- Improve RelateNG performance for A/L cases in prepared predicates (GH-1201, Martin Davis)
- Improve OffsetCurve to handle mitre joins for polygons (Martin Davis)
+ - Fix inscribed circle initialization (GH-1225, Benoit Maurin)
## Changes in 3.13.0
2024-09-06
commit 7b8aef8a35a4d67f0b96b597dad65d0a02621554
Author: Benoit Maurin <maurinbe at gmail.com>
Date: Mon Jan 13 19:20:44 2025 +0100
Fix tests
diff --git a/tests/unit/algorithm/construct/MaximumInscribedCircleTest.cpp b/tests/unit/algorithm/construct/MaximumInscribedCircleTest.cpp
index be67b9a2e..9818b8b92 100644
--- a/tests/unit/algorithm/construct/MaximumInscribedCircleTest.cpp
+++ b/tests/unit/algorithm/construct/MaximumInscribedCircleTest.cpp
@@ -173,7 +173,7 @@ void object::test<5>
()
{
checkCircle("POLYGON ((100 100, 200 200, 100 100, 100 100))",
- 0.01, 150, 150, 0 );
+ 0.01, 100, 100, 0 );
}
@@ -198,7 +198,7 @@ void object::test<7>
()
{
checkCircle("POLYGON((1 2, 1 2, 1 2, 1 2, 3 2, 1 2))",
- 0.01, 2, 2, 0 );
+ 0.01, 1, 2, 0 );
}
// Exception thrown to avoid infinite loop with infinite envelope
commit 7761c9e1ff0053ebd1f74795dc756a2d4ccee35d
Author: Benoit Maurin <maurinbe at gmail.com>
Date: Mon Jan 13 17:59:31 2025 +0100
Fix inscribed circle initialization
diff --git a/src/algorithm/construct/MaximumInscribedCircle.cpp b/src/algorithm/construct/MaximumInscribedCircle.cpp
index c3a471078..89c910d3b 100644
--- a/src/algorithm/construct/MaximumInscribedCircle.cpp
+++ b/src/algorithm/construct/MaximumInscribedCircle.cpp
@@ -164,8 +164,8 @@ MaximumInscribedCircle::distanceToBoundary(double x, double y)
MaximumInscribedCircle::Cell
MaximumInscribedCircle::createInteriorPointCell(const Geometry* geom)
{
- Coordinate c;
std::unique_ptr<Point> p = geom->getInteriorPoint();
+ Coordinate c(p->getX(), p->getY());
Cell cell(p->getX(), p->getY(), 0, distanceToBoundary(c));
return cell;
}
-----------------------------------------------------------------------
Summary of changes:
NEWS.md | 1 +
src/algorithm/construct/MaximumInscribedCircle.cpp | 2 +-
tests/unit/algorithm/construct/MaximumInscribedCircleTest.cpp | 4 ++--
3 files changed, 4 insertions(+), 3 deletions(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list