com.vividsolutions.jcs.conflate.polygonmatch
Class CentroidAligner

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

public class CentroidAligner
extends IndependentCandidateMatcher


Constructor Summary
CentroidAligner(IndependentCandidateMatcher matcher)
           
 
Method Summary
 double match(com.vividsolutions.jts.geom.Geometry target, com.vividsolutions.jts.geom.Geometry candidate)
          Compares the target to the candidate feature.
 
Methods inherited from class com.vividsolutions.jcs.conflate.polygonmatch.IndependentCandidateMatcher
match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CentroidAligner

public CentroidAligner(IndependentCandidateMatcher matcher)
Method Detail

match

public double match(com.vividsolutions.jts.geom.Geometry target,
                    com.vividsolutions.jts.geom.Geometry candidate)
Description copied from class: IndependentCandidateMatcher
Compares the target to the candidate feature. Called for each candidate feature by #match(Feature, FeatureCollection).

Specified by:
match in class IndependentCandidateMatcher
Parameters:
target - the feature to match
candidate - the feature to compare with the target
Returns:
a score from 0 to 1 indicating how well the candidate matches the target