[geos-commits] [SCM] GEOS branch 3.12 updated. 5b60b76fc0dbab04ed2488f78c4239a8b82657b8

git at osgeo.org git at osgeo.org
Thu Nov 30 08:54:50 PST 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, 3.12 has been updated
       via  5b60b76fc0dbab04ed2488f78c4239a8b82657b8 (commit)
      from  564e22f389f2a4cfb38ae7e7ea661146c3fc536c (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 5b60b76fc0dbab04ed2488f78c4239a8b82657b8
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Thu Nov 30 08:54:32 2023 -0800

    Add geosop operation largestEmptyCircleBdy

diff --git a/util/geosop/GeometryOp.cpp b/util/geosop/GeometryOp.cpp
index 59c01b644..ccff0bc3f 100644
--- a/util/geosop/GeometryOp.cpp
+++ b/util/geosop/GeometryOp.cpp
@@ -372,13 +372,22 @@ std::vector<GeometryOpCreator> opRegistry {
 }},
 {"largestEmptyCircle", [](std::string name) { return GeometryOp::create(name,
     catConst,
-    "compute radius line of largest empty circle of geometry up to a distance tolerance",
+    "compute radius line of largest empty circle between obstacles up to a distance tolerance",
     [](const std::unique_ptr<Geometry>& geom, double d) {
         geos::algorithm::construct::LargestEmptyCircle lec( geom.get(), d );
         std::unique_ptr<Geometry> res = lec.getRadiusLine();
         return new Result( std::move(res) );
     });
 }},
+{"largestEmptyCircleBdy", [](std::string name) { return GeometryOp::create(name,
+    catConst,
+    "compute radius line of largest empty circle between obstacles with center in a boundary, up to a distance tolerance",
+    [](const std::unique_ptr<Geometry>& geom, const std::unique_ptr<Geometry>& geom2, double d) {
+        geos::algorithm::construct::LargestEmptyCircle lec( geom.get(), geom2.get(), d );
+        std::unique_ptr<Geometry> res = lec.getRadiusLine();
+        return new Result( std::move(res) );
+    });
+}},
 {"maxInscribedCircle", [](std::string name) { return GeometryOp::create(name,
     catConst,
     "compute maximum inscribed circle radius of Polygon up to a distance tolerance",

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

Summary of changes:
 util/geosop/GeometryOp.cpp | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list