Calibrate the M value of a line layer based on the distance from the origin.
INPUTS
• Line layer (with or without M).
• Start M value: initial value (in output units).
• Output M units: meters or kilometers.
OPTIONS
• Overwrite existing M values: if disabled, features that already have M are skipped (warning).
• Reverse direction: M decreases along the geometric direction.
OUTPUTS
• Line(s) with M geometry and fields: M_START, M_END, LEN_M, STATUS.
• STATUS may include: OK, SKIPPED_HAS_M, ZERO_LENGTH, BAD_GEOMETRY, NO_ROUTE.
The output preserves the original attributes.
Note: If the input geometry is multipart (MultiLineString), each part is processed separately and the output will contain one feature per part.
TIP
For consistent distances, use a projected CRS (meters). In a geographic CRS, use Auto/Geodesic (advanced) mode.
DETAILS
See the plugin README: Calibrate lines from distance