[geos-commits] [SCM] GEOS branch main updated. 3aaa42b5ead736456c8c91f98e3bde3953450189
git at osgeo.org
git at osgeo.org
Thu Jun 12 16:26:53 PDT 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, main has been updated
via 3aaa42b5ead736456c8c91f98e3bde3953450189 (commit)
from e50b5af9cda259a528ae873cc2cc106d3cd30f1f (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 3aaa42b5ead736456c8c91f98e3bde3953450189
Author: Mike Taves <mwtoews at gmail.com>
Date: Fri Jun 13 11:26:21 2025 +1200
geosop: add bufferSingleSided operation (#1272)
diff --git a/util/geosop/GeometryOp.cpp b/util/geosop/GeometryOp.cpp
index 2e6d65f97..075315066 100644
--- a/util/geosop/GeometryOp.cpp
+++ b/util/geosop/GeometryOp.cpp
@@ -325,6 +325,16 @@ std::vector<GeometryOpCreator> opRegistry {
return new Result( g3.release() );
});
}},
+{"bufferSingleSided", [](std::string name) { return GeometryOp::create(name,
+ catConst,
+ "compute the buffer of geometry by a distance with the single-sided option",
+ [](const Geometry& geom, double d) {
+ geos::operation::buffer::BufferParameters param;
+ param.setSingleSided( true );
+ std::unique_ptr<Geometry> g3 = geos::operation::buffer::BufferOp::bufferOp(&geom, d, param);
+ return new Result( g3.release() );
+ });
+ }},
{"offsetCurve", [](std::string name) { return GeometryOp::create(name,
catConst,
"compute the offset curve of geometry by a distance",
-----------------------------------------------------------------------
Summary of changes:
util/geosop/GeometryOp.cpp | 10 ++++++++++
1 file changed, 10 insertions(+)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list