getLocationStaticWithResolver static method

LinearLocation getLocationStaticWithResolver(
  1. Geometry linearGeom,
  2. double length,
  3. bool resolveLower
)

Computes the {@link LinearLocation} for a given length along a linear {@link Geometry}, with control over how the location is resolved at component endpoints.

@param linearGeom the linear geometry to use @param length the length index of the location @param resolveLower if true lengths are resolved to the lowest possible index @return the {@link LinearLocation} for the length

Implementation

static LinearLocation getLocationStaticWithResolver(
    Geometry linearGeom, double length, bool resolveLower) {
  LengthLocationMap locater = new LengthLocationMap(linearGeom);
  return locater.getLocationWithResolver(length, resolveLower);
}