lineSlice

fun lineSlice(start: Position, stop: Position, line: LineString): LineString

Takes a LineString, a start and a stop Position and returns a subsection of the line between those points. The start and stop points do not need to fall exactly on the line.

Return

The sliced subsection of the line

Parameters

start

Start position

stop

Stop position

line

The line string to slice