[geos-commits] [SCM] GEOS branch master updated. 63d8835f48861e469de4b33c36600d2f282802c1
git at osgeo.org
git at osgeo.org
Tue Feb 9 16:01:57 PST 2021
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, master has been updated
via 63d8835f48861e469de4b33c36600d2f282802c1 (commit)
from e998492bccc11deef474c818b9316b4c7f6dc00d (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 63d8835f48861e469de4b33c36600d2f282802c1
Author: Daniel Baston <dbaston at gmail.com>
Date: Tue Feb 9 19:01:44 2021 -0500
Mark some RayCrossingCounter methods const
diff --git a/include/geos/algorithm/RayCrossingCounter.h b/include/geos/algorithm/RayCrossingCounter.h
index ce2df3f..872bfb7 100644
--- a/include/geos/algorithm/RayCrossingCounter.h
+++ b/include/geos/algorithm/RayCrossingCounter.h
@@ -117,7 +117,7 @@ public:
* @return `true` if the point lies exactly on a segment
*/
bool
- isOnSegment()
+ isOnSegment() const
{
return isPointOnSegment;
}
@@ -132,7 +132,7 @@ public:
*
* @return the Location of the point
*/
- geom::Location getLocation();
+ geom::Location getLocation() const;
/** \brief
* Tests whether the point lies in or on the ring, polygon or
@@ -143,7 +143,7 @@ public:
*
* @return `true` if the point lies in or on the supplied polygon
*/
- bool isPointInPolygon();
+ bool isPointInPolygon() const;
};
diff --git a/src/algorithm/RayCrossingCounter.cpp b/src/algorithm/RayCrossingCounter.cpp
index 06b1eff..96e4769 100644
--- a/src/algorithm/RayCrossingCounter.cpp
+++ b/src/algorithm/RayCrossingCounter.cpp
@@ -142,7 +142,7 @@ RayCrossingCounter::countSegment(const geom::Coordinate& p1,
geom::Location
-RayCrossingCounter::getLocation()
+RayCrossingCounter::getLocation() const
{
if(isPointOnSegment) {
return geom::Location::BOUNDARY;
@@ -159,7 +159,7 @@ RayCrossingCounter::getLocation()
bool
-RayCrossingCounter::isPointInPolygon()
+RayCrossingCounter::isPointInPolygon() const
{
return getLocation() != geom::Location::EXTERIOR;
}
-----------------------------------------------------------------------
Summary of changes:
include/geos/algorithm/RayCrossingCounter.h | 6 +++---
src/algorithm/RayCrossingCounter.cpp | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list