#include <IteratedNoder.h>
Public Member Functions | |
IteratedNoder (const geom::PrecisionModel *newPm) | |
void | setMaximumIterations (int n) |
std::vector< SegmentString * > * | getNodedSubstrings () const |
Returns a Collection of fully noded SegmentStrings. The SegmentStrings have the same context as their parent. | |
void | computeNodes (std::vector< SegmentString * > *inputSegmentStrings) |
Iterated noding using a FLOATING precision model is not guaranteed to converge, due to roundoff error. This problem is detected and an exception is thrown. Clients can choose to rerun the noding using a lower precision model.
Last port: noding/IteratedNoder.java rev. 1.6 (JTS-1.7)
void geos::noding::IteratedNoder::setMaximumIterations | ( | int | n | ) | [inline] |
std::vector<SegmentString*>* geos::noding::IteratedNoder::getNodedSubstrings | ( | ) | const [inline, virtual] |
Returns a Collection of fully noded SegmentStrings. The SegmentStrings have the same context as their parent.
Implements geos::noding::Noder.
void geos::noding::IteratedNoder::computeNodes | ( | std::vector< SegmentString * > * | inputSegmentStrings | ) | [virtual] |
Fully nodes a list of SegmentStrings, i.e. peforms noding iteratively until no intersections are found between segments. Maintains labelling of edges correctly through the noding.
segStrings | a collection of SegmentStrings to be noded |
TopologyException | if the iterated noding fails to converge. |
Implements geos::noding::Noder.