com.vividsolutions.jump.plugin.edit
Class UniqueSegmentsExtracter

java.lang.Object
  extended by com.vividsolutions.jump.plugin.edit.UniqueSegmentsExtracter

public class UniqueSegmentsExtracter
extends java.lang.Object

Extracts the unique segments from a FeatureCollection.

Version:
1.0
Author:
Martin Davis

Constructor Summary
UniqueSegmentsExtracter()
           
UniqueSegmentsExtracter(TaskMonitor monitor)
          Creates a new counter, allowing control over whether zero-length segments are counted.
 
Method Summary
 void add(com.vividsolutions.jts.geom.Coordinate p0, com.vividsolutions.jts.geom.Coordinate p1)
           
 void add(Feature f)
           
 void add(FeatureCollection fc)
           
 java.util.Collection getSegments()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueSegmentsExtracter

public UniqueSegmentsExtracter()

UniqueSegmentsExtracter

public UniqueSegmentsExtracter(TaskMonitor monitor)
Creates a new counter, allowing control over whether zero-length segments are counted.

Parameters:
countZeroLengthSegments - if false, zero-length segments will be ignored
Method Detail

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()