pyinterp.geodetic.Polygon.distance

Polygon.distance(*args, **kwargs)

Overloaded function.

  1. distance(self: pyinterp.core.geodetic.Polygon, other: pyinterp.core.geodetic.Polygon) -> float

Calculate the distance between the two polygons.

Parameters

other (pyinterp.core.geodetic.Polygon) – The other polygon to consider.

Returns

the distance between the two polygons in meters.

Return type

float

  1. distance(self: pyinterp.core.geodetic.Polygon, point: pyinterp.core.geodetic.Point) -> float

Calculate the distance between this instance and a point.

Parameters

point (pyinterp.core.geodetic.Point) – The point to consider.

Returns

the distance between this polygon and the provided point.

Return type

float