Package com.vividsolutions.jcs.conflate.polygonmatch

Source Code of com.vividsolutions.jcs.conflate.polygonmatch.HausdorffDistanceMatcher

package com.vividsolutions.jcs.conflate.polygonmatch;

import com.vividsolutions.jcs.algorithm.VertexHausdorffDistance;
import com.vividsolutions.jts.geom.Geometry;

/**
* Uses an approximation of the Hausdorff distance.
* @see VertexHausdorffDistance
*/
public class HausdorffDistanceMatcher extends AbstractDistanceMatcher {

    protected double distance(Geometry target, Geometry candidate) {
        return new VertexHausdorffDistance(target, candidate).distance();
    }
   
}
TOP

Related Classes of com.vividsolutions.jcs.conflate.polygonmatch.HausdorffDistanceMatcher

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.