[geos-commits] [SCM] GEOS branch main updated. 3f9a70ac74e3c605ff6612f3d87a94d6c04c589c
git at osgeo.org
git at osgeo.org
Thu Aug 15 12:32:02 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 3f9a70ac74e3c605ff6612f3d87a94d6c04c589c (commit)
from 220df45d361ebe658458f630baf117ab0bb31dd5 (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 3f9a70ac74e3c605ff6612f3d87a94d6c04c589c
Author: Dan Baston <dbaston at gmail.com>
Date: Thu Aug 15 15:31:27 2024 -0400
C API: Delegate predicates to Geometry methods (#1139)
diff --git a/capi/geos_ts_c.cpp b/capi/geos_ts_c.cpp
index 2ac48477c..b6efb7e03 100644
--- a/capi/geos_ts_c.cpp
+++ b/capi/geos_ts_c.cpp
@@ -94,7 +94,6 @@
#include <geos/operation/valid/RepeatedPointRemover.h>
#include <geos/operation/relateng/RelateNG.h>
-#include <geos/operation/relateng/RelatePredicate.h>
#include <geos/precision/GeometryPrecisionReducer.h>
#include <geos/shape/fractal/HilbertEncoder.h>
@@ -210,7 +209,6 @@ using geos::operation::overlayng::OverlayNG;
using geos::operation::overlayng::UnaryUnionNG;
using geos::operation::overlayng::OverlayNGRobust;
using geos::operation::relateng::RelateNG;
-using geos::operation::relateng::RelatePredicate;
using geos::operation::valid::TopologyValidationError;
using geos::precision::GeometryPrecisionReducer;
@@ -583,7 +581,7 @@ extern "C" {
GEOSDisjoint_r(GEOSContextHandle_t extHandle, const Geometry* g1, const Geometry* g2)
{
return execute(extHandle, 2, [&]() {
- return RelateNG::disjoint(g1, g2);
+ return g1->disjoint(g2);
});
}
@@ -591,7 +589,7 @@ extern "C" {
GEOSTouches_r(GEOSContextHandle_t extHandle, const Geometry* g1, const Geometry* g2)
{
return execute(extHandle, 2, [&]() {
- return RelateNG::touches(g1, g2);
+ return g1->touches(g2);
});
}
@@ -599,7 +597,7 @@ extern "C" {
GEOSIntersects_r(GEOSContextHandle_t extHandle, const Geometry* g1, const Geometry* g2)
{
return execute(extHandle, 2, [&]() {
- return RelateNG::intersects(g1, g2);
+ return g1->intersects(g2);
});
}
@@ -607,7 +605,7 @@ extern "C" {
GEOSCrosses_r(GEOSContextHandle_t extHandle, const Geometry* g1, const Geometry* g2)
{
return execute(extHandle, 2, [&]() {
- return RelateNG::crosses(g1, g2);
+ return g1->crosses(g2);
});
}
@@ -615,7 +613,7 @@ extern "C" {
GEOSWithin_r(GEOSContextHandle_t extHandle, const Geometry* g1, const Geometry* g2)
{
return execute(extHandle, 2, [&]() {
- return RelateNG::within(g1, g2);
+ return g1->within(g2);
});
}
@@ -623,7 +621,7 @@ extern "C" {
GEOSContains_r(GEOSContextHandle_t extHandle, const Geometry* g1, const Geometry* g2)
{
return execute(extHandle, 2, [&]() {
- return RelateNG::contains(g1, g2);
+ return g1->contains(g2);
});
}
@@ -631,7 +629,7 @@ extern "C" {
GEOSOverlaps_r(GEOSContextHandle_t extHandle, const Geometry* g1, const Geometry* g2)
{
return execute(extHandle, 2, [&]() {
- return RelateNG::overlaps(g1, g2);
+ return g1->overlaps(g2);
});
}
@@ -639,7 +637,7 @@ extern "C" {
GEOSCovers_r(GEOSContextHandle_t extHandle, const Geometry* g1, const Geometry* g2)
{
return execute(extHandle, 2, [&]() {
- return RelateNG::covers(g1, g2);
+ return g1->covers(g2);
});
}
@@ -647,7 +645,7 @@ extern "C" {
GEOSCoveredBy_r(GEOSContextHandle_t extHandle, const Geometry* g1, const Geometry* g2)
{
return execute(extHandle, 2, [&]() {
- return RelateNG::coveredBy(g1, g2);
+ return g1->coveredBy(g2);
});
}
@@ -655,7 +653,7 @@ extern "C" {
GEOSEquals_r(GEOSContextHandle_t extHandle, const Geometry* g1, const Geometry* g2)
{
return execute(extHandle, 2, [&]() {
- return RelateNG::equalsTopo(g1, g2);
+ return g1->equals(g2);
});
}
-----------------------------------------------------------------------
Summary of changes:
capi/geos_ts_c.cpp | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list