pyinterp.geometry.geographic.algorithms.line_interpolate#
- pyinterp.geometry.geographic.algorithms.line_interpolate(geometry: pyinterp.core.geometry.geographic.LineString, distance: float, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) pyinterp.core.geometry.geographic.Point#
- pyinterp.geometry.geographic.algorithms.line_interpolate(geometry: pyinterp.core.geometry.geographic.Segment, distance: float, spheroid: pyinterp.core.geometry.geographic.Spheroid | None = None, strategy: pyinterp.core.geometry.geographic.algorithms.Strategy = Strategy.ANDOYER) pyinterp.core.geometry.geographic.Point
Returns a point at the specified distance along a linestring.
The function interpolates a point at the given distance from the start of the linestring using geodetic calculations on the spheroid.
- Parameters:
geometry – LineString or Segment to interpolate along.
distance – Distance from the start of the linestring (in meters).
spheroid – Optional spheroid for geodetic calculations.
strategy – Calculation strategy.
- Returns:
A Point at the specified distance along the linestring.