movingpandas.Trajectory.hausdorff_distance#
- Trajectory.hausdorff_distance(other, units=(None, None, None, None))#
Return the Hausdorff distance to the other geometric object (based on shapely https://shapely.readthedocs.io/en/stable/manual.html#object.hausdorff_distance). The Hausdorff distance between two geometries is the furthest distance that a point on either geometry can be from the nearest point to it on the other geometry.
If units have been declared:
For geographic projections, in declared units
For known CRS units, in declared units
For unknown CRS units, in declared units as if CRS is in meters
- Parameters:
other (shapely.geometry or Trajectory) – Other geometric object or trajectory
units (str) – Units in which to calculate distance values (default: CRS units) For more info, check the list of supported units at https://movingpandas.org/units
- Returns:
Hausdorff distance
- Return type:
float