com.vividsolutions.jcs.conflate.polygonmatch
Class ThresholdFilter

java.lang.Object
  extended bycom.vividsolutions.jcs.conflate.polygonmatch.ThresholdFilter
All Implemented Interfaces:
FeatureMatcher

public class ThresholdFilter
extends java.lang.Object
implements FeatureMatcher

Filters out shapes with a score below a given value.


Constructor Summary
ThresholdFilter(double minScore)
          Creates a ThresholdFilter with the given minimum score.
 
Method Summary
 Matches match(com.vividsolutions.jump.feature.Feature target, com.vividsolutions.jump.feature.FeatureCollection candidates)
          Filters out shapes with a score below the minimum score threshold.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThresholdFilter

public ThresholdFilter(double minScore)
Creates a ThresholdFilter with the given minimum score.

Parameters:
minScore - the score below which shapes will be filtered out
Method Detail

match

public Matches match(com.vividsolutions.jump.feature.Feature target,
                     com.vividsolutions.jump.feature.FeatureCollection candidates)
Filters out shapes with a score below the minimum score threshold.

Specified by:
match in interface FeatureMatcher
Parameters:
target - ignored
candidates - a Matches object created by another FeatureMatcher
Returns:
the candidates having a score greater than or equal to the threshold score. The scores are preserved from the original Matches object.