pyinterp.geometry.geographic.algorithms.for_each_point_pairwise_distance

pyinterp.geometry.geographic.algorithms.for_each_point_pairwise_distance#

pyinterp.geometry.geographic.algorithms.for_each_point_pairwise_distance(geometry1: pyinterp.core.geometry.geographic.MultiPoint, geometry2: pyinterp.core.geometry.geographic.MultiPoint, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) numpy.ndarray[dtype=float64, shape=(*), order='C']#
pyinterp.geometry.geographic.algorithms.for_each_point_pairwise_distance(geometry1: pyinterp.core.geometry.geographic.Ring, geometry2: pyinterp.core.geometry.geographic.Ring, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) numpy.ndarray[dtype=float64, shape=(*), order='C']
pyinterp.geometry.geographic.algorithms.for_each_point_pairwise_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) numpy.ndarray[dtype=float64, shape=(*), order='C']

Calculate pairwise distances between points of two geometries.

Parameters:
  • geometry1 – Source geometry containing points (MultiPoint, LineString, or Ring).

  • geometry2 – Target geometry containing points (must have the same number of points as geometry1).

  • spheroid – Optional spheroid for geodetic calculations. If not provided, uses WGS84 ellipsoid.

  • strategy – Calculation strategy.

Returns:

Array of distances in meters.