pyinterp.geometry.geographic.algorithms.for_each_point_distance

pyinterp.geometry.geographic.algorithms.for_each_point_distance#

pyinterp.geometry.geographic.algorithms.for_each_point_distance(source: pyinterp.core.geometry.geographic.MultiPoint, target: pyinterp.core.geometry.geographic.Box, 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_distance(source: pyinterp.core.geometry.geographic.MultiPoint, target: 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_distance(source: pyinterp.core.geometry.geographic.MultiPoint, target: pyinterp.core.geometry.geographic.Polygon, 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_distance(source: pyinterp.core.geometry.geographic.MultiPoint, target: pyinterp.core.geometry.geographic.MultiPolygon, 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_distance(source: pyinterp.core.geometry.geographic.LineString, target: pyinterp.core.geometry.geographic.Box, 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_distance(source: pyinterp.core.geometry.geographic.LineString, target: 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_distance(source: pyinterp.core.geometry.geographic.LineString, target: pyinterp.core.geometry.geographic.Polygon, 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_distance(source: pyinterp.core.geometry.geographic.LineString, target: pyinterp.core.geometry.geographic.MultiPolygon, 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_distance(source: pyinterp.core.geometry.geographic.Ring, target: pyinterp.core.geometry.geographic.Box, 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_distance(source: pyinterp.core.geometry.geographic.Ring, target: 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_distance(source: pyinterp.core.geometry.geographic.Ring, target: pyinterp.core.geometry.geographic.Polygon, 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_distance(source: pyinterp.core.geometry.geographic.Ring, target: pyinterp.core.geometry.geographic.MultiPolygon, 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 the distance from each point in a source geometry to a target geometry.

The distance is calculated on the surface of a spheroid (default: WGS84). Different geodetic calculation strategies are available for accuracy/performance trade-offs.

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

  • target – Target geometry to measure distance to.

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

  • strategy – Calculation strategy.

Returns:

Array of distances in meters.