Experimental

Merges adjacent compatible route events.

vector linear-referencing events merge

## Parameters

Name | Description | Required | Default
--- | --- | --- | ---
`events` | Input event layer containing route intervals. | Required | `events.gpkg`
`event_route_field` | Event-layer route identifier field. | Required | `route_id`
`from_measure_field` | Event-layer interval start field. | Required | `from_m`
`to_measure_field` | Event-layer interval end field. | Required | `to_m`
`group_fields` | Optional comma-delimited fields used for merge compatibility. Defaults to all non-measure fields. | Optional | —
`gap_tolerance` | Maximum gap allowed for adjacency merge (default 0.0). | Optional | `0.0`
`conflict_mode` | Overlap handling mode: error|skip (default error). | Optional | `error`
`output` | Output merged-event layer. | Required | —

## Examples

Merges compatible adjacent events on each route.

    wbe.route_event_merge(conflict_mode='error', event_route_field='route_id', events='events.gpkg', from_measure_field='from_m', gap_tolerance=0.0, group_fields='route_id,road_class,speed', output='events_merged.gpkg', to_measure_field='to_m')

## Project Links

WbW Homepage User Manual Support WbW