[geos-commits] r3978 - trunk/src/operation/polygonize
svn_geos at osgeo.org
svn_geos at osgeo.org
Sat Mar 29 03:37:03 PDT 2014
Author: strk
Date: 2014-03-29 03:37:03 -0700 (Sat, 29 Mar 2014)
New Revision: 3978
Modified:
trunk/src/operation/polygonize/EdgeRing.cpp
Log:
Polygonizer: do not pretend all exceptions are due to edge invalidity
Modified: trunk/src/operation/polygonize/EdgeRing.cpp
===================================================================
--- trunk/src/operation/polygonize/EdgeRing.cpp 2014-03-28 21:13:29 UTC (rev 3977)
+++ trunk/src/operation/polygonize/EdgeRing.cpp 2014-03-29 10:37:03 UTC (rev 3978)
@@ -27,7 +27,8 @@
#include <geos/geom/GeometryFactory.h>
#include <geos/geom/CoordinateSequenceFactory.h>
#include <geos/algorithm/CGAlgorithms.h>
-#include <geos/util.h>
+#include <geos/util/IllegalArgumentException.h>
+#include <geos/util.h> // TODO: drop this, includes too much
#include <vector>
#include <cassert>
@@ -226,7 +227,7 @@
getCoordinates();
try {
ring=factory->createLinearRing(*ringPts);
- } catch (const std::exception& e) {
+ } catch (const geos::util::IllegalArgumentException& e) {
#if GEOS_DEBUG
// FIXME: print also ringPts
std::cerr << "EdgeRing::getRingInternal: "
More information about the geos-commits
mailing list