LocationIndexOfLine class

Determines the location of a subline along a linear {@link Geometry}. The location is reported as a pair of {@link 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).

Constructors

LocationIndexOfLine(Geometry linearGeom)

Properties

hashCode int
The hash code for this object.
no setterinherited
linearGeom Geometry
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

indicesOf(Geometry subLine) List<LinearLocation>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

indicesOfStatic(Geometry linearGeom, Geometry subLine) List<LinearLocation>
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.