pyinterp.geometry.cartesian.algorithms.line_interpolate

pyinterp.geometry.cartesian.algorithms.line_interpolate#

pyinterp.geometry.cartesian.algorithms.line_interpolate(geometry: pyinterp.core.geometry.cartesian.LineString, distance: float) pyinterp.core.geometry.cartesian.Point#
pyinterp.geometry.cartesian.algorithms.line_interpolate(geometry: pyinterp.core.geometry.cartesian.Segment, distance: float) pyinterp.core.geometry.cartesian.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. If the distance exceeds the linestring length, the endpoint is returned.

Parameters:
  • geometry – LineString or Segment to interpolate along.

  • distance – Distance from the start of the linestring.

Returns:

A Point at the specified distance along the linestring.