[geos-commits] r2518 - branches/3.1/source/geomgraph
svn_geos at osgeo.org
svn_geos at osgeo.org
Wed May 27 13:56:34 EDT 2009
Author: pramsey
Date: 2009-05-27 13:56:34 -0400 (Wed, 27 May 2009)
New Revision: 2518
Modified:
branches/3.1/source/geomgraph/GeometryGraph.cpp
Log:
Back-port fix from trunk r2489 for #234
Modified: branches/3.1/source/geomgraph/GeometryGraph.cpp
===================================================================
--- branches/3.1/source/geomgraph/GeometryGraph.cpp 2009-05-27 17:21:09 UTC (rev 2517)
+++ branches/3.1/source/geomgraph/GeometryGraph.cpp 2009-05-27 17:56:34 UTC (rev 2518)
@@ -227,8 +227,9 @@
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;
+ CoordinateSequence *lrcl = lr->getCoordinatesRO();
CoordinateSequence* coord=CoordinateSequence::removeRepeatedPoints(lrcl);
if (coord->getSize()<4) {
hasTooFewPointsVar=true;
More information about the geos-commits
mailing list