GEOS
3.4.2
|
Validates that a collection of SegmentStrings is correctly noded. More...
#include <FastNodingValidator.h>
Public Member Functions | |
FastNodingValidator (std::vector< noding::SegmentString * > &newSegStrings) | |
bool | isValid () |
std::string | getErrorMessage () const |
void | checkValid () |
Validates that a collection of SegmentStrings is correctly noded.
Uses indexes to improve performance. Does NOT check a-b-a collapse situations. Also does not check for endpt-interior vertex intersections. This should not be a problem, since the noders should be able to compute intersections between vertices correctly. User may either test the valid condition, or request that a TopologyException be thrown.
void geos::noding::FastNodingValidator::checkValid | ( | ) |
Checks for an intersection and throws a TopologyException if one is found.
TopologyException | if an intersection is found |
std::string geos::noding::FastNodingValidator::getErrorMessage | ( | ) | const |
Returns an error message indicating the segments containing the intersection.
|
inline |
Checks for an intersection and reports if one is found.