[geos-commits] r2526 - branches/3.0/source/geomgraph
svn_geos at osgeo.org
svn_geos at osgeo.org
Wed May 27 14:51:02 EDT 2009
Author: pramsey
Date: 2009-05-27 14:51:02 -0400 (Wed, 27 May 2009)
New Revision: 2526
Modified:
branches/3.0/source/geomgraph/GeometryGraph.cpp
Log:
Backport r2489 from trunk.
Modified: branches/3.0/source/geomgraph/GeometryGraph.cpp
===================================================================
--- branches/3.0/source/geomgraph/GeometryGraph.cpp 2009-05-27 18:49:17 UTC (rev 2525)
+++ branches/3.0/source/geomgraph/GeometryGraph.cpp 2009-05-27 18:51:02 UTC (rev 2526)
@@ -226,8 +226,12 @@
GeometryGraph::addPolygonRing(const LinearRing *lr, int cwLeft, int cwRight)
// throw IllegalArgumentException (see below)
{
- const CoordinateSequence *lrcl;
- lrcl = lr->getCoordinatesRO();
+
+ // skip empty component (see bug #234)
+ if ( lr->isEmpty() ) return;
+
+ const CoordinateSequence *lrcl = lr->getCoordinatesRO();
+
CoordinateSequence* coord=CoordinateSequence::removeRepeatedPoints(lrcl);
if (coord->getSize()<4) {
hasTooFewPointsVar=true;
More information about the geos-commits
mailing list