Package org.locationtech.jts.linearref
Class LocationIndexOfLine
- java.lang.Object
-
- org.locationtech.jts.linearref.LocationIndexOfLine
-
class LocationIndexOfLine extends java.lang.Object
Determines the location of a subline along a linearGeometry
. The location is reported as a pair ofLinearLocation
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).
-
-
Field Summary
Fields Modifier and Type Field Description private Geometry
linearGeom
-
Constructor Summary
Constructors Constructor Description LocationIndexOfLine(Geometry linearGeom)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
linearGeom
private Geometry linearGeom
-
-
Constructor Detail
-
LocationIndexOfLine
public LocationIndexOfLine(Geometry linearGeom)
-
-
Method Detail
-
indicesOf
public 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.
-
indicesOf
public LinearLocation[] indicesOf(Geometry subLine)
-
-