LengthIndexOfPoint class

Computes the length index of the point on a linear {@link Geometry} nearest a given {@link Coordinate}. The nearest point is not necessarily unique; this class always computes the nearest point closest to the start of the geometry.

Constructors

LengthIndexOfPoint(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

indexOf(Coordinate inputPt) double
Find the nearest location along a linear {@link Geometry} to a given point.
indexOfAfter(Coordinate inputPt, double minIndex) double
Finds the nearest index along the linear {@link Geometry} to a given {@link Coordinate} after the specified minimum index. If possible the location returned will be strictly greater than the minLocation. If this is not possible, the value returned will equal minLocation. (An example where this is not possible is when minLocation = end of line ).
indexOfFromStart(Coordinate inputPt, double minIndex) double
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
segmentNearestMeasure(LineSegment seg, Coordinate inputPt, double segmentStartMeasure) double
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

indexOfAfterStatic(Geometry linearGeom, Coordinate inputPt, double minIndex) double
indexOfStatic(Geometry linearGeom, Coordinate inputPt) double