[geos-commits] [SCM] GEOS branch main updated. b7e11f5710ace681562228b791651bbc28835986
git at osgeo.org
git at osgeo.org
Fri Jun 19 14:57:18 PDT 2026
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 b7e11f5710ace681562228b791651bbc28835986 (commit)
from 4226b5a034d249e64385d3dac7e69774ff30d6f3 (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 b7e11f5710ace681562228b791651bbc28835986
Author: Daniel Baston <dbaston at gmail.com>
Date: Fri Jun 19 15:13:34 2026 -0400
KdNode: mark some methods as const
diff --git a/include/geos/index/kdtree/KdNode.h b/include/geos/index/kdtree/KdNode.h
index e1238ab0b..1d7ea0450 100644
--- a/include/geos/index/kdtree/KdNode.h
+++ b/include/geos/index/kdtree/KdNode.h
@@ -42,15 +42,15 @@ public:
KdNode(double p_x, double p_y, void* p_data);
KdNode(const geom::Coordinate& p_p, void* p_data);
- double getX() { return p.x; }
- double getY() { return p.y; }
- const geom::Coordinate& getCoordinate() { return p; }
+ double getX() const { return p.x; }
+ double getY() const { return p.y; }
+ const geom::Coordinate& getCoordinate() const { return p; }
void* getData() { return data; }
KdNode* getLeft() { return left; }
KdNode* getRight() { return right; }
void increment() { count++; }
- std::size_t getCount() { return count; }
- bool isRepeated() { return count > 1; }
+ std::size_t getCount() const { return count; }
+ bool isRepeated() const { return count > 1; }
void setLeft(KdNode* p_left) { left = p_left; }
void setRight(KdNode* p_right) { right = p_right; }
diff --git a/include/geos/index/kdtree/KdTree.h b/include/geos/index/kdtree/KdTree.h
index f98f203cc..a715a4c4c 100644
--- a/include/geos/index/kdtree/KdTree.h
+++ b/include/geos/index/kdtree/KdTree.h
@@ -119,7 +119,7 @@ private:
public:
/**
- * Converts a collection of {@link KdNode}s to an vector of {@link geom::Coordinate}s.
+ * Converts a collection of {@link KdNode}s to a vector of {@link geom::Coordinate}s.
*
* @param kdNodes a collection of nodes
* @return a vector of the coordinates represented by the nodes
@@ -128,7 +128,7 @@ public:
/**
* Converts a collection of {@link KdNode}s
- * to an vector of {@link geom::Coordinate}s,
+ * to a vector of {@link geom::Coordinate}s,
* specifying whether repeated nodes should be represented
* by multiple coordinates.
*
-----------------------------------------------------------------------
Summary of changes:
include/geos/index/kdtree/KdNode.h | 10 +++++-----
include/geos/index/kdtree/KdTree.h | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list