Extract 1 or 2 segments from a calibrated line layer with M geometry LineStringM/MultiLineStringM, from manually entered ROUTE_ID + chainage (PK) (PK_INI + PK_FIN).
INPUTS
• Calibrated line layer (M) and its ROUTE_ID field
• M field units (m or km)
• Start/end chainage (PK) (format km+mmm or a decimal number in km)
• Segment route identifier
OPTIONS
• Generate endpoint points (optional): creates 2 points per segment (start/end) with PK_REQ vs the actual PK.
ADVANCED OPTIONS
• Tolerance (km): helps resolve small mismatches within a calibrated segment (does not fill gaps).
• Snap to the nearest available chainage point (PK): if an endpoint falls in a gap, it can be adjusted to the nearest valid chainage point (PK).
• Generate issues table: logs adjustments/warnings/errors per segment.
OUTPUTS
• Extracted segments with typical fields: PK_INI, PK_FIN, DIST_PK_KM, DIST_GEOM_KM, ADJUSTED, ADJUST_REASON, N_PIECES, STATUS.
• Endpoint points (optional) with PK_REQ, PK, ADJUSTED, ADJUST_REASON.
• Issues (table) (optional) with WARNINGS (e.g. {self.WARN_SEGMENT_SPLIT}) and CRITICALS.
DETAILS
See the plugin README: Locate segments.