[geos-commits] [SCM] GEOS branch main updated. 7819df9c5557cce672911d17d3a14a471e26cbe0
git at osgeo.org
git at osgeo.org
Mon Sep 20 17:00:25 PDT 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, main has been updated
via 7819df9c5557cce672911d17d3a14a471e26cbe0 (commit)
from 7f8bc49ce3afbdbd3d510e8e97be530c1206f45a (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 7819df9c5557cce672911d17d3a14a471e26cbe0
Author: Martin Davis <mtnclimb at gmail.com>
Date: Mon Sep 20 17:00:15 2021 -0700
Fix DiscreteFrechetDistance method misspelling
diff --git a/include/geos/algorithm/distance/DiscreteFrechetDistance.h b/include/geos/algorithm/distance/DiscreteFrechetDistance.h
index 5f5271e..76ce04f 100644
--- a/include/geos/algorithm/distance/DiscreteFrechetDistance.h
+++ b/include/geos/algorithm/distance/DiscreteFrechetDistance.h
@@ -145,7 +145,7 @@ public:
}
private:
- geom::Coordinate getSegementAt(const geom::CoordinateSequence& seq, std::size_t index);
+ geom::Coordinate getSegmentAt(const geom::CoordinateSequence& seq, std::size_t index);
PointPairDistance& getFrecheDistance(std::vector< std::vector<PointPairDistance> >& ca, std::size_t i, std::size_t j,
const geom::CoordinateSequence& p, const geom::CoordinateSequence& q);
diff --git a/src/algorithm/distance/DiscreteFrechetDistance.cpp b/src/algorithm/distance/DiscreteFrechetDistance.cpp
index 1ea8509..923f2af 100644
--- a/src/algorithm/distance/DiscreteFrechetDistance.cpp
+++ b/src/algorithm/distance/DiscreteFrechetDistance.cpp
@@ -73,7 +73,7 @@ void DiscreteFrechetDistance::setDensifyFraction(double dFrac)
/* private */
geom::Coordinate
-DiscreteFrechetDistance::getSegementAt(const CoordinateSequence& seq, std::size_t index)
+DiscreteFrechetDistance::getSegmentAt(const CoordinateSequence& seq, std::size_t index)
{
if(densifyFrac > 0.0) {
// Validity of the cast to size_t has been verified in setDensifyFraction()
@@ -107,7 +107,7 @@ DiscreteFrechetDistance::getFrecheDistance(std::vector< std::vector<PointPairDis
if(! ca[i][j].getIsNull()) {
return ca[i][j];
}
- p_ptDist.initialize(getSegementAt(p, i), getSegementAt(q, j));
+ p_ptDist.initialize(getSegmentAt(p, i), getSegmentAt(q, j));
if(i == 0 && j == 0) {
ca[i][j] = p_ptDist;
}
-----------------------------------------------------------------------
Summary of changes:
include/geos/algorithm/distance/DiscreteFrechetDistance.h | 2 +-
src/algorithm/distance/DiscreteFrechetDistance.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list