Extract a single segment from a calibrated line layer with M geometry LineStringM/MultiLineStringM, from a table where each row defines a segment using ROUTE_ID + chainage (PK) ('PK_START' + 'PK_END).
INPUTS
• Calibrated line layer (M) and its ROUTE_ID field
• Segments table with fields: ROUTE_ID, Start chainage (PK), End chainage (PK), and (optional) EVENT_ID
• M units (m or km)
• Segment: Chainage (PK) values + ROUTE_ID value
OPTIONS
• Add table fields to output (optional).
• Generate endpoint points (optional).
ADVANCED OPTIONS
• Tolerance (km): helps resolve small mismatches within a calibrated segment (does not fill gaps).
• Snap to the nearest available chainage (PK) point: if an endpoint falls in a gap, it can be adjusted to the nearest valid chainage (PK) point.
• Generate issues table: logs adjustments/warnings/errors per segment.
OUTPUTS
• Extracted segments with typical fields: ROUTE_ID, EVENT_ID (if present), 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 from segment table.