Experimental

Creates routed line events from a CSV event table and a route layer using from/to measures.

vector linear-referencing events csv

Parameters

NameDescriptionRequiredDefault
routesInput route line layer.Requiredroutes.gpkg
eventsInput CSV event table path.Requiredline_events.csv
event_route_fieldCSV field containing route identifiers.Requiredroute_id
from_measure_fieldCSV field containing start measures.Requiredfrom_m
to_measure_fieldCSV field containing end measures.Requiredto_m
route_id_fieldOptional route-layer field containing route identifiers. Defaults to feature FID.Optional
outputOutput line vector path.Required

Examples

Creates line events on routes from from/to measures stored in a CSV table.

wbe.route_event_lines_from_table(event_route_field='route_id', events='line_events.csv', from_measure_field='from_m', output='route_event_lines.gpkg', route_id_field='RID', routes='routes.gpkg', to_measure_field='to_m')

Project Links

WbW Homepage User Manual Learn More