getLocationStatic static method

LinearLocation getLocationStatic(
  1. Geometry linearGeom,
  2. double length
)

Computes the {@link LinearLocation} for a given length along a linear {@link Geometry}.

@param linearGeom the linear geometry to use @param length the length index of the location @return the {@link LinearLocation} for the length

Implementation

static LinearLocation getLocationStatic(Geometry linearGeom, double length) {
  LengthLocationMap locater = new LengthLocationMap(linearGeom);
  return locater.getLocation(length);
}