pyinterp.geometry.geographic.algorithms.curvilinear_distance

pyinterp.geometry.geographic.algorithms.curvilinear_distance#

pyinterp.geometry.geographic.algorithms.curvilinear_distance(geometry: 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']#
pyinterp.geometry.geographic.algorithms.curvilinear_distance(geometry: 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']

Calculate the curvilinear distance along the geometric object.

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

Parameters:
  • geometry – Geometric object.

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

  • strategy – Calculation strategy.

Returns:

Curvilinear distance in meters.