Skip to main content
Returns a Series containing the discrete Fréchet distance to aligned other. The Fréchet distance is a measure of similarity: it is the greatest distance between any point in A and the closest point in B. The discrete distance is an approximation of this metric: only vertices are considered. The parameter densify makes this approximation less coarse by splitting the line segments between vertices before computing the distance. The operation works on a 1-to-1 row-wise manner.

Signature

Parameters

GeoSeries or geometric object
required
The GeoSeries (elementwise) or geometric object to find the distance to.
bool | None (default None)
default:"None"
If True, automatically aligns GeoSeries based on their indices. None defaults to True. If False, the order of elements is preserved.
float
default:"None"
The densify parameter is not supported by Sedona. Passing a value will raise a NotImplementedError.

Returns

Series(float)
See also
  • GeoSeries.hausdorff_distance

Examples