[geos-commits] r2551 - trunk/source/headers/geos/geomgraph
svn_geos at osgeo.org
svn_geos at osgeo.org
Fri Jun 5 14:12:30 EDT 2009
Author: strk
Date: 2009-06-05 14:12:30 -0400 (Fri, 05 Jun 2009)
New Revision: 2551
Modified:
trunk/source/headers/geos/geomgraph/EdgeNodingValidator.h
Log:
Add missing static function
Modified: trunk/source/headers/geos/geomgraph/EdgeNodingValidator.h
===================================================================
--- trunk/source/headers/geos/geomgraph/EdgeNodingValidator.h 2009-06-05 18:02:57 UTC (rev 2550)
+++ trunk/source/headers/geos/geomgraph/EdgeNodingValidator.h 2009-06-05 18:12:30 UTC (rev 2551)
@@ -26,7 +26,6 @@
#include <vector>
-//#include <geos/noding/NodingValidator.h> // for composition
#include <geos/noding/FastNodingValidator.h> // for composition
#include <geos/inline.h>
@@ -47,11 +46,10 @@
namespace geos {
namespace geomgraph { // geos.geomgraph
-/**
+/** \brief
* Validates that a collection of SegmentStrings is correctly noded.
+ *
* Throws an appropriate exception if an noding error is found.
- *
- * @version 1.4
*/
class EdgeNodingValidator {
@@ -71,10 +69,26 @@
std::vector<geom::CoordinateSequence*> newCoordSeq;
noding::FastNodingValidator nv;
- //noding::NodingValidator nv;
public:
+ /** \brief
+ * Checks whether the supplied {@link Edge}s
+ * are correctly noded.
+ *
+ * Throws a {@link TopologyException} if they are not.
+ *
+ * @param edges a collection of Edges.
+ * @throws TopologyException if the SegmentStrings are not
+ * correctly noded
+ *
+ */
+ static void checkValid(std::vector<Edge*>& edges)
+ {
+ EdgeNodingValidator validator(edges);
+ validator.checkValid();
+ }
+
EdgeNodingValidator(std::vector<Edge*>& edges)
:
segStr(),
More information about the geos-commits
mailing list