com.vividsolutions.jts.noding
Class SegmentStringDissolver
java.lang.Object
com.vividsolutions.jts.noding.SegmentStringDissolver
public class SegmentStringDissolver
extends java.lang.Object
Dissolves a noded collection of
SegmentString
s to produce
a set of merged linework with unique segments.
A custom merging strategy can be applied when two identical (up to orientation)
strings are dissolved together.
The default merging strategy is simply to discard the merged string.
A common use for this class is to merge noded edges
while preserving topological labelling.
SegmentStringDissolver
public SegmentStringDissolver()
Creates a dissolver with the default merging strategy.
dissolve
public void dissolve(Collection segStrings)
dissolve
public void dissolve(SegmentString segString)
segString
- the string to dissolve
getDissolved
public Collection getDissolved()