pyinterp.core.geodetic.MultiPolygon.distance#

MultiPolygon.distance(*args, **kwargs)#

Overloaded function.

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

Calculate the distance between the two multi-polygons.

Parameters:

other – The other multi-polygon to consider.

Returns:

The distance between the two multi-polygons in meters.

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

Calculate the distance between this instance and a polygon.

Parameters:

other – The other multi-polygon to consider.

Returns:

The distance between this instance and the polygon in meters.

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

Calculate the distance between this instance and a point.

Parameters:

point – The point to consider.

Returns:

The distance between this multi-polygon and the provided point.