extractLine method

Geometry extractLine(
  1. LinearLocation startIndex,
  2. LinearLocation endIndex
)

Computes the {@link LineString} for the interval on the line between the given indices. If the start location is after the end location, the computed linear geometry has reverse orientation to the input line.

@param startIndex the index of the start of the interval @param endIndex the index of the end of the interval @return the linear geometry between the indices

Implementation

Geometry extractLine(LinearLocation startIndex, LinearLocation endIndex) {
  return ExtractLineByLocation.extractStatic(
      linearGeom, startIndex, endIndex);
}