extractStatic static method
Computes the subline of a {@link LineString} between two {@link LinearLocation}s on the line. If the start location is after the end location, the computed linear geometry has reverse orientation to the input line.
@param line the line to use as the baseline @param start the start location @param end the end location @return the extracted subline
Implementation
static Geometry extractStatic(
Geometry line, LinearLocation start, LinearLocation end) {
ExtractLineByLocation ls = new ExtractLineByLocation(line);
return ls.extract(start, end);
}