Class SegmentsExtracter

java.lang.Object
com.vividsolutions.jump.plugin.edit.SegmentsExtracter

public class SegmentsExtracter extends Object
Extracts the unique segments from a FeatureCollection. Replace UniqueSegmentExtracter, adding the capability to return segments occuring between minOccur and maxOccur times in the dataset. Now, this class can do the same as FeatureSegmentCounter in JCS and should replace it [Michael Michaud 2007-05-15]
Version:
1.1
Author:
Martin Davis / Michael Michaud
  • Constructor Details

    • SegmentsExtracter

      public SegmentsExtracter()
    • SegmentsExtracter

      public SegmentsExtracter(TaskMonitor monitor)
      Creates a new counter.
      Parameters:
      monitor - to monitor the task progression
    • SegmentsExtracter

      public SegmentsExtracter(TaskMonitor monitor, boolean countZeroLengthSegments)
  • Method Details

    • setFence

      public void setFence(org.locationtech.jts.geom.Geometry fence)
    • normalizeSegments

      public SegmentsExtracter normalizeSegments()
    • keepSource

      public SegmentsExtracter keepSource()
    • add

      public void add(FeatureCollection fc)
    • add

      public void add(Feature f)
    • add

      public void add(Feature f, org.locationtech.jts.geom.Coordinate p0, org.locationtech.jts.geom.Coordinate p1)
    • getSegments

      public Collection<org.locationtech.jts.geom.LineSegment> getSegments()
    • getAllSegments

      public Collection<org.locationtech.jts.geom.LineSegment> getAllSegments()
    • getSegments

      public Collection<org.locationtech.jts.geom.LineSegment> getSegments(int minOccurs, int maxOccurs)
    • getSegmentSource

      public Map<org.locationtech.jts.geom.LineSegment, List<Feature>> getSegmentSource()
    • getSegmentSource

      public List<Feature> getSegmentSource(org.locationtech.jts.geom.LineSegment lineSegment)