public class MCIndexNoder extends SinglePassNoder
SegmentString
s using a index based
on MonotoneChain
s and a SpatialIndex
.
The SpatialIndex
used should be something that supports
envelope (range) queries efficiently (such as a Quadtree
}
or HPRtree
(which is the default index provided).
The noder supports using an overlap tolerance distance . This allows determining segment intersection using a buffer for uses involving snapping with a distance tolerance.
Modifier and Type | Class and Description |
---|---|
static class |
MCIndexNoder.SegmentOverlapAction |
Constructor and Description |
---|
MCIndexNoder() |
MCIndexNoder(SegmentIntersector si) |
MCIndexNoder(SegmentIntersector si,
double overlapTolerance)
Creates a new noder with a given
SegmentIntersector
and an overlap tolerance distance to expand intersection tests with. |
Modifier and Type | Method and Description |
---|---|
void |
computeNodes(Collection inputSegStrings)
Computes the noding for a collection of
SegmentString s. |
SpatialIndex |
getIndex() |
List |
getMonotoneChains() |
Collection |
getNodedSubstrings()
Returns a
Collection of fully noded SegmentString s. |
setSegmentIntersector
public MCIndexNoder()
public MCIndexNoder(SegmentIntersector si)
public MCIndexNoder(SegmentIntersector si, double overlapTolerance)
SegmentIntersector
and an overlap tolerance distance to expand intersection tests with.si
- the segment intersectoroverlapTolerance
- the expansion distance for overlap testspublic List getMonotoneChains()
public SpatialIndex getIndex()
public Collection getNodedSubstrings()
SinglePassNoder
Collection
of fully noded SegmentString
s.
The SegmentStrings have the same context as their parent.getNodedSubstrings
in interface Noder
getNodedSubstrings
in class SinglePassNoder
public void computeNodes(Collection inputSegStrings)
SinglePassNoder
SegmentString
s.
Some Noders may add all these nodes to the input SegmentStrings;
others may only add some or none at all.computeNodes
in interface Noder
computeNodes
in class SinglePassNoder
inputSegStrings
- a collection of SegmentString
s to nodeCopyright © 2024. All rights reserved.