Class SegmentStringDissolver

Hierarchy: Object , SegmentStringDissolver
public class SegmentStringDissolver
Dissolves a noded collection of SegmentStrings to produce a set of merged linework with unique segments. A custom SegmentStringMerger merging strategy can be supplied. This strategy will be called when two identical (up to orientation) strings are dissolved together. The default merging strategy is simply to discard one of the merged strings.

A common use for this class is to merge noded edges while preserving topological labelling. This requires a custom merging strategy to be supplied to merge the topology labels appropriately.

See also:
SegmentStringMerger

Other

  • version: 1.7
public SegmentStringDissolver(SegmentStringMerger merger)
Creates a dissolver with a user-defined merge strategy.
Parameters:
merger - merger the merging strategy to use
public SegmentStringDissolver()
Creates a dissolver with the default merging strategy.
public void dissolve(Collection segStrings)
Dissolve all SegmentStrings in the input Collection
Parameters:
segStrings - segStrings
public void dissolve(SegmentString segString)
Dissolve the given SegmentString.
Parameters:
segString - segString the string to dissolve
public Collection getDissolved()
Gets the collection of dissolved (i.e. unique) SegmentStrings
Returns:
the unique SegmentStrings