pygeoops.extend_line_by_distance#

pygeoops.extend_line_by_distance(line: LineString, start_distance: float, end_distance: float) LineString#

Extends a line with the specified distances.

Parameters:
  • line (LineString) – The line to extend.

  • start_distance (float) – The distance to extend the start of the line with.

  • end_distance (float) – The distance to extend the end of the line with.

Returns:

The extended line.

Return type:

LineString