com.vividsolutions.jts.noding

Class SimpleNoder

Implemented Interfaces:
Noder

public class SimpleNoder
extends SinglePassNoder

Nodes a set of SegmentStrings by performing a brute-force comparison of every segment to every other one. This has n^2 performance, so is too slow for use on large numbers of segments.
Version:
1.7

Field Summary

Fields inherited from class com.vividsolutions.jts.noding.SinglePassNoder

segInt

Constructor Summary

SimpleNoder()

Method Summary

void
computeNodes(Collection inputSegStrings)
Computes the noding for a collection of SegmentStrings.
Collection
getNodedSubstrings()
Returns a Collection of fully noded SegmentStrings.

Methods inherited from class com.vividsolutions.jts.noding.SinglePassNoder

computeNodes, getNodedSubstrings, setSegmentIntersector

Constructor Details

SimpleNoder

public SimpleNoder()

Method Details

computeNodes

public void computeNodes(Collection inputSegStrings)
Computes the noding for a collection of SegmentStrings. Some Noders may add all these nodes to the input SegmentStrings; others may only add some or none at all.
Specified by:
computeNodes in interface Noder
Overrides:
computeNodes in interface SinglePassNoder
Parameters:

getNodedSubstrings

public Collection getNodedSubstrings()
Returns a Collection of fully noded SegmentStrings. The SegmentStrings have the same context as their parent.
Specified by:
getNodedSubstrings in interface Noder
Overrides:
getNodedSubstrings in interface SinglePassNoder
Returns:
a Collection of SegmentStrings