Experimental

Creates routed line events from an event vector layer using from/to measures.

vector linear-referencing events

## Parameters

Name | Description | Required | Default
--- | --- | --- | ---
`routes` | Input route line layer. | Required | `routes.gpkg`
`events` | Input event vector layer. | Required | `line_events.gpkg`
`event_route_field` | Event-layer field containing route identifiers. | Required | `route_id`
`from_measure_field` | Event-layer field containing start measures. | Required | `from_m`
`to_measure_field` | Event-layer field containing end measures. | Required | `to_m`
`route_id_field` | Optional route-layer field containing route identifiers. Defaults to feature FID. | Optional | —
`write_event_fid` | Write EVENT_FID to preserve source event feature IDs (default true). | Optional | `True`
`write_event_xy` | Write source event geometry X/Y attributes (default false). | Optional | `False`
`output` | Output line vector path. | Required | —

## Examples

Creates line events on routes from from/to measures in an event vector layer.

    wbe.route_event_lines_from_layer(event_route_field='route_id', events='line_events.gpkg', from_measure_field='from_m', output='route_event_lines_layer.gpkg', route_id_field='RID', routes='routes.gpkg', to_measure_field='to_m', write_event_fid=True, write_event_xy=False)

## Project Links

WbW Homepage User Manual Support WbW