extractStatic static method

Geometry extractStatic(
  1. Geometry line,
  2. LinearLocation start,
  3. LinearLocation end
)

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);
}