class LocationIndexOfLine
extends java.lang.Object
Geometry
.
The location is reported as a pair of LinearLocation
s.
Note: Currently this algorithm is not guaranteed to return the correct substring in some situations where an endpoint of the test line occurs more than once in the input line. (However, the common case of a ring is always handled correctly).
Modifier and Type | Field and Description |
---|---|
private Geometry |
linearGeom |
Constructor and Description |
---|
LocationIndexOfLine(Geometry linearGeom) |
Modifier and Type | Method and Description |
---|---|
LinearLocation[] |
indicesOf(Geometry subLine) |
static LinearLocation[] |
indicesOf(Geometry linearGeom,
Geometry subLine)
MD - this algorithm has been extracted into a class
because it is intended to validate that the subline truly is a subline,
and also to use the internal vertex information to unambiguously locate the subline.
|
private Geometry linearGeom
public LocationIndexOfLine(Geometry linearGeom)
public static LinearLocation[] indicesOf(Geometry linearGeom, Geometry subLine)
public LinearLocation[] indicesOf(Geometry subLine)