class ExtractLineByLocation
extends java.lang.Object
Geometry
between
two LinearLocation
s on the line.Constructor and Description |
---|
ExtractLineByLocation(Geometry line) |
Modifier and Type | Method and Description |
---|---|
private LineString |
computeLine(LinearLocation start,
LinearLocation end)
Assumes input is valid (e.g.
|
private Geometry |
computeLinear(LinearLocation start,
LinearLocation end)
Assumes input is valid (e.g.
|
static Geometry |
extract(Geometry line,
LinearLocation start,
LinearLocation end)
Computes the subline of a
LineString between
two LinearLocation s on the line. |
Geometry |
extract(LinearLocation start,
LinearLocation end)
Extracts a subline of the input.
|
private Geometry |
reverse(Geometry linear) |
private Geometry line
public ExtractLineByLocation(Geometry line)
public static Geometry extract(Geometry line, LinearLocation start, LinearLocation end)
LineString
between
two 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.line
- the line to use as the baselinestart
- the start locationend
- the end locationpublic Geometry extract(LinearLocation start, LinearLocation end)
end < start
the linear geometry computed will be reversed.start
- the start locationend
- the end locationprivate LineString computeLine(LinearLocation start, LinearLocation end)
start
- end
- private Geometry computeLinear(LinearLocation start, LinearLocation end)
start
- end
-