|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.noding.SegmentStringDissolver
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.SegmentStringMerger
Nested Class Summary | |
static interface |
SegmentStringDissolver.SegmentStringMerger
|
Constructor Summary | |
SegmentStringDissolver()
Creates a dissolver with the default merging strategy. |
|
SegmentStringDissolver(SegmentStringDissolver.SegmentStringMerger merger)
Creates a dissolver with a user-defined merge strategy. |
Method Summary | |
void |
dissolve(java.util.Collection segStrings)
Dissolve all SegmentString s in the input Collection |
void |
dissolve(SegmentString segString)
Dissolve the given SegmentString . |
java.util.Collection |
getDissolved()
Gets the collection of dissolved (i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SegmentStringDissolver(SegmentStringDissolver.SegmentStringMerger merger)
merger
- the merging strategy to usepublic SegmentStringDissolver()
Method Detail |
public void dissolve(java.util.Collection segStrings)
SegmentString
s in the input Collection
segStrings
- public void dissolve(SegmentString segString)
SegmentString
.
segString
- the string to dissolvepublic java.util.Collection getDissolved()
SegmentString
s
SegmentString
s
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |