Class HausdorffDistance
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.algo.base.HausdorffDistance
-
public class HausdorffDistance extends Object
Compute the Hausdorff distance between two geometries.- Author:
- julien Gaffuri
- See Also:
- https://en.wikipedia.org/wiki/Hausdorff_distance
-
-
Constructor Summary
Constructors Constructor Description HausdorffDistance(org.locationtech.jts.geom.Geometry g0, org.locationtech.jts.geom.Geometry g1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.locationtech.jts.geom.Coordinate
getC0()
org.locationtech.jts.geom.Coordinate
getC1()
double
getDistance()
org.locationtech.jts.geom.Geometry
getGeom0()
org.locationtech.jts.geom.Geometry
getGeom1()
org.locationtech.jts.geom.LineString
toGeom()
String
toString()
-
-
-
Method Detail
-
getGeom0
public org.locationtech.jts.geom.Geometry getGeom0()
-
getGeom1
public org.locationtech.jts.geom.Geometry getGeom1()
-
getDistance
public double getDistance()
- Returns:
- The hausdorff distance @see https://en.wikipedia.org/wiki/Hausdorff_distance
-
getC0
public org.locationtech.jts.geom.Coordinate getC0()
- Returns:
- The coordinate of the first geometry where the hausdorff distance is reached.
-
getC1
public org.locationtech.jts.geom.Coordinate getC1()
- Returns:
- The coordinate of the second geometry where the hausdorff distance is reached.
-
toGeom
public org.locationtech.jts.geom.LineString toGeom()
- Returns:
- A linear segment representing the distance
-
-