pyinterp.geometry.cartesian.algorithms.for_each_point_pairwise_distance

pyinterp.geometry.cartesian.algorithms.for_each_point_pairwise_distance#

pyinterp.geometry.cartesian.algorithms.for_each_point_pairwise_distance(geometry1: pyinterp.core.geometry.cartesian.MultiPoint, geometry2: pyinterp.core.geometry.cartesian.MultiPoint) numpy.ndarray[dtype=float64, shape=(*), order='C']#
pyinterp.geometry.cartesian.algorithms.for_each_point_pairwise_distance(geometry1: pyinterp.core.geometry.cartesian.Ring, geometry2: pyinterp.core.geometry.cartesian.Ring) numpy.ndarray[dtype=float64, shape=(*), order='C']
pyinterp.geometry.cartesian.algorithms.for_each_point_pairwise_distance(geometry1: pyinterp.core.geometry.cartesian.LineString, geometry2: pyinterp.core.geometry.cartesian.LineString) 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).

Returns:

Array of distances in coordinate units.