com.vividsolutions.jump.plugin.edit
Class SegmentsExtracter
java.lang.Object
com.vividsolutions.jump.plugin.edit.SegmentsExtracter
public class SegmentsExtracter
- extends java.lang.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SegmentsExtracter
public SegmentsExtracter()
SegmentsExtracter
public SegmentsExtracter(TaskMonitor monitor)
- Creates a new counter.
- Parameters:
monitor -
add
public void add(FeatureCollection fc)
add
public void add(Feature f)
add
public void add(com.vividsolutions.jts.geom.Coordinate p0,
com.vividsolutions.jts.geom.Coordinate p1)
getSegments
public java.util.Collection getSegments()
getSegments
public java.util.Collection getSegments(int minOccurs,
int maxOccurs)