LocationIndexOfPoint class

Computes the {@link LinearLocation} 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

LocationIndexOfPoint(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) LinearLocation
Find the nearest location along a linear {@link Geometry} to a given point.
indexOfAfter(Coordinate inputPt, LinearLocation minIndex) LinearLocation
Find the nearest {@link LinearLocation} along the linear {@link Geometry} to a given {@link Coordinate} after the specified minimum {@link LinearLocation}. 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, LinearLocation? minIndex) 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

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