pyinterp.geometry.geographic.algorithms.distance#
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.Point, geometry2: pyinterp.core.geometry.geographic.Point, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float#
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.Point, geometry2: pyinterp.core.geometry.geographic.Box, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.Point, geometry2: pyinterp.core.geometry.geographic.Polygon, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.Point, geometry2: pyinterp.core.geometry.geographic.MultiPolygon, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.Box, geometry2: pyinterp.core.geometry.geographic.Point, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.Box, geometry2: pyinterp.core.geometry.geographic.Box, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.Box, geometry2: pyinterp.core.geometry.geographic.Polygon, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.LineString, geometry2: pyinterp.core.geometry.geographic.LineString, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.LineString, geometry2: pyinterp.core.geometry.geographic.Polygon, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.LineString, geometry2: pyinterp.core.geometry.geographic.Box, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.Polygon, geometry2: pyinterp.core.geometry.geographic.Point, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.Polygon, geometry2: pyinterp.core.geometry.geographic.Box, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.Polygon, geometry2: pyinterp.core.geometry.geographic.Polygon, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.Polygon, geometry2: pyinterp.core.geometry.geographic.MultiPolygon, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.MultiPolygon, geometry2: pyinterp.core.geometry.geographic.Point, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.MultiPolygon, geometry2: pyinterp.core.geometry.geographic.Polygon, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
- pyinterp.geometry.geographic.algorithms.distance(geometry1: pyinterp.core.geometry.geographic.MultiPolygon, geometry2: pyinterp.core.geometry.geographic.MultiPolygon, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) float
Calculate the distance between two geometric objects.
The distance is calculated on the surface of a spheroid (default: WGS84). Different geodetic calculation strategies are available for accuracy/performance trade-offs.
- Parameters:
geometry1 – First geometric object.
geometry2 – Second geometric object.
spheroid – Optional spheroid for geodetic calculations. If not provided, uses WGS84 ellipsoid.
strategy – Calculation strategy.
- Returns:
Distance in meters.