PROProduction

Workflow-grade Pro analysis with audit-ready outputs.

workflow pro

Workflow Narrative

Route Event Governance

Who It Is For

Primary User

DOTs, pipeline operators, rail/powerline operators, and telecom managers.

What It Does

How It Works

Inputs

ParameterTypeRequiredDescription
`events`Vector pathRequiredEvent layer (GeoPackage, GeoJSON, Shapefile) with route ID and from/to measure fields
`route_id_field`stringRequiredField name containing route identifiers
`from_measure_field`stringRequiredField name for interval start measure
`to_measure_field`stringRequiredField name for interval end measure
`gap_tolerance`floatOptionalGaps smaller than this value are not flagged (default 0.0)
`overlap_tolerance`floatOptionalOverlaps smaller than this value are not flagged (default 0.0)
`auto_fix`boolOptionalEnable auto-correction of descending intervals and trimming of overlaps (default false)
`domain_rules_json`pathOptionalJSON file defining per-field validation rules with `allowed_values`, `regex`, `min`, and `max` checks
`governed_events`vector pathRequiredOutput path for QA-passed events with GOVERNANCE_STATUS and CORRECTIONS attributes
`issues_csv`pathRequiredOutput CSV path for per-event issue log
`corrected_events`vector pathOptionalOutput path for auto-corrected events (only written when auto_fix=true)
`governance_report`pathRequiredOutput JSON path for governance summary report
`remediation_queue_csv`pathOptionalOptional prioritized remediation queue with recommended corrective action

Outputs

OutputTypeContents
`governed_events`VectorQA-passed events; attributes include GOVERNANCE_STATUS ("PASSED"/"CORRECTED") and CORRECTIONS (correction type or "none")
`issues_csv`CSVPer-violation log: event_id, route_id, rule_violated, severity, description, measure_start, measure_end
`corrected_events`VectorOnly written when auto_fix=true; lists corrected events with CORR_TYPE, ORIG_FROM, ORIG_TO, CORR_FROM, CORR_TO columns
`governance_report`JSONSummary: total_events, passed_events, failed_events, pass_rate_percent, rules_violated, severity_distribution, correctable_count, domain_rules_applied
`remediation_queue_csv`CSVPrioritized queue with rule category, severity, and recommended corrective action

Python Example

env = WbEnvironment(license_tier="pro")

result = env.run_tool("route_event_governance_for_linear_assets",
    events="pavement_events.gpkg",
    route_id_field="ROUTE_ID",
    from_measure_field="FROM_MEAS",
    to_measure_field="TO_MEAS",
    gap_tolerance=0.5,
    overlap_tolerance=0.1,
    auto_fix=True,
    domain_rules_json="output/route_event_rules.json",
    governed_events="output/governed_events.gpkg",
    issues_csv="output/issues.csv",
    corrected_events="output/corrected_events.gpkg",
    governance_report="output/governance_report.json",
    remediation_queue_csv="output/remediation_queue.csv",
)

import json
report = json.loads(open(result["governance_report"]).read())
print(f"Pass rate: {report['pass_rate_percent']:.1f}%  "
      f"({report['passed_events']}/{report['total_events']} events)")

License Notice

Use of this function requires a license for Whitebox Workflows Professional (WbW-Pro). Please visit www.whiteboxgeo.com to purchase a license.

Project Links

WbW Homepage User Manual Learn More