Class VertexHausdorffDistance

java.lang.Object
com.vividsolutions.jump.algorithm.VertexHausdorffDistance

public class VertexHausdorffDistance extends Object
Implements algorithm for computing a distance metric which can be thought of as the "Vertex Hausdorff Distance". This is the Hausdorff distance restricted to vertices for one of the geometries. Also computes two points of the Geometries which are separated by the computed distance.

NOTE: This algorithm does NOT compute the full Hausdorff distance correctly, but an approximation that is correct for a large subset of useful cases. One important part of this subset is Linestrings that are roughly parallel to each other, and roughly equal in length - just what is needed for line matching.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    VertexHausdorffDistance(org.locationtech.jts.geom.Geometry g0, org.locationtech.jts.geom.Geometry g1)
    Deprecated.
    use JTS DiscreteHausdorffDistance instead
    VertexHausdorffDistance(org.locationtech.jts.geom.LineSegment seg0, org.locationtech.jts.geom.LineSegment seg1)
    Computes Hausdorff distance between two segments Hausdorff distance with LineSegment arguments is not implemented in JTS (used by UniqueSegmentsWithToleranceFinder)
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    static double
    distance(org.locationtech.jts.geom.Geometry g0, org.locationtech.jts.geom.Geometry g1)
    Deprecated.
    use JTS DiscreteHausdorffDistance instead
    org.locationtech.jts.geom.Coordinate[]
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VertexHausdorffDistance

      @Deprecated public VertexHausdorffDistance(org.locationtech.jts.geom.Geometry g0, org.locationtech.jts.geom.Geometry g1)
      Deprecated.
      use JTS DiscreteHausdorffDistance instead
      Compute a discrete hausdorff distance between two geometries
      Parameters:
      g0 - first geometry
      g1 - second geometry
    • VertexHausdorffDistance

      public VertexHausdorffDistance(org.locationtech.jts.geom.LineSegment seg0, org.locationtech.jts.geom.LineSegment seg1)
      Computes Hausdorff distance between two segments Hausdorff distance with LineSegment arguments is not implemented in JTS (used by UniqueSegmentsWithToleranceFinder)
      Parameters:
      seg0 - first LineSegment
      seg1 - second LineSegment
  • Method Details

    • distance

      @Deprecated public static double distance(org.locationtech.jts.geom.Geometry g0, org.locationtech.jts.geom.Geometry g1)
      Deprecated.
      use JTS DiscreteHausdorffDistance instead
      Compute a discrete hausdorff distance between two geometries
      Parameters:
      g0 - first geometry
      g1 - second geometry
    • distance

      public double distance()
    • getCoordinates

      public org.locationtech.jts.geom.Coordinate[] getCoordinates()