[geos-commits] [SCM] GEOS branch master updated. 81a133670f9ea213e47468e13d4b12352993bced
git at osgeo.org
git at osgeo.org
Wed Nov 28 13:59:00 PST 2018
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 81a133670f9ea213e47468e13d4b12352993bced (commit)
from 2e1a098567937ec3b67335118ca5f66b8233991f (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 81a133670f9ea213e47468e13d4b12352993bced
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Nov 28 13:58:45 2018 -0800
Change PolygonBuilder::findEdgeRingContaining over to an iterator loop
diff --git a/src/operation/overlay/PolygonBuilder.cpp b/src/operation/overlay/PolygonBuilder.cpp
index 739fcff..8f0090a 100644
--- a/src/operation/overlay/PolygonBuilder.cpp
+++ b/src/operation/overlay/PolygonBuilder.cpp
@@ -334,9 +334,10 @@ PolygonBuilder::findEdgeRingContaining(EdgeRing *testEr,
Coordinate testPt=testRing->getCoordinateN(0);
EdgeRing *minShell=nullptr;
const Envelope *minShellEnv=nullptr;
- for(size_t i=0, n=newShellList.size(); i<n; i++)
+
+ for(vector<EdgeRing*>::iterator it = newShellList.begin(); it != newShellList.end(); ++it)
{
- EdgeRing *tryShell=newShellList[i];
+ EdgeRing *tryShell=*it;
LinearRing *tryShellRing=tryShell->getLinearRing();
const Envelope *tryShellEnv=tryShellRing->getEnvelopeInternal();
// the hole envelope cannot equal the shell envelope
-----------------------------------------------------------------------
Summary of changes:
src/operation/overlay/PolygonBuilder.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list