Class VertexHausdorffDistance
java.lang.Object
com.vividsolutions.jump.algorithm.VertexHausdorffDistance
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 -
Constructor Summary
ConstructorsConstructorDescriptionVertexHausdorffDistance(org.locationtech.jts.geom.Geometry g0, org.locationtech.jts.geom.Geometry g1) Deprecated.use JTS DiscreteHausdorffDistance insteadVertexHausdorffDistance(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
-
Constructor Details
-
VertexHausdorffDistance
@Deprecated public VertexHausdorffDistance(org.locationtech.jts.geom.Geometry g0, org.locationtech.jts.geom.Geometry g1) Deprecated.use JTS DiscreteHausdorffDistance insteadCompute a discrete hausdorff distance between two geometries- Parameters:
g0- first geometryg1- 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 LineSegmentseg1- 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 insteadCompute a discrete hausdorff distance between two geometries- Parameters:
g0- first geometryg1- second geometry
-
distance
public double distance() -
getCoordinates
public org.locationtech.jts.geom.Coordinate[] getCoordinates()
-