Skip to main content

export_path_sanity_decisions

Function export_path_sanity_decisions 

Source
pub fn export_path_sanity_decisions<P: AsRef<Path>>(
    debug_info: &DebugInfo,
    output_path: P,
) -> Result<(), ProjectionError>
Expand description

Export Phase 5 — Post-Viterbi path sanity decisions as GeoJSON

Produces a FeatureCollection with one Point feature per consecutive segment pair evaluated during navigability validation. Each feature is placed at the midpoint of the from-netelement’s geometry.

Properties per feature:

  • pair_index — sequential index of the pair (0-based)
  • from_netelement_id — source netelement
  • to_netelement_id — target netelement
  • reachable — whether the target was reachable
  • action — “kept”, “removed”, or “rerouted”
  • rerouted_via — comma-separated NE IDs of bridge segments (empty if N/A)
  • warning — warning message (empty if reachable)