indicesOf method
Computes the indices for a subline of the line. (The subline must conform to the line; that is, all vertices in the subline (except possibly the first and last) must be vertices of the line and occur in the same order).
@param subLine a subLine of the line @return a pair of indices for the start and end of the subline.
Implementation
List<double> indicesOf(Geometry subLine) {
List<LinearLocation> locIndex =
LocationIndexOfLine.indicesOfStatic(linearGeom, subLine);
List<double> index = [
LengthLocationMap.getLengthStatic(linearGeom, locIndex[0]),
LengthLocationMap.getLengthStatic(linearGeom, locIndex[1])
];
return index;
}