Use consistent EBG node weights in duplicated via nodes
This commit is contained in:
parent
a5e0d7011b
commit
a5353c7179
@ -3,6 +3,7 @@
|
|||||||
- Bugfixes:
|
- Bugfixes:
|
||||||
- FIXED #4754: U-Turn penalties are applied to straight turns.
|
- FIXED #4754: U-Turn penalties are applied to straight turns.
|
||||||
- FIXED #4756: Removed too restrictive road name check in the sliproad handler
|
- FIXED #4756: Removed too restrictive road name check in the sliproad handler
|
||||||
|
- FIXED #4731: Use correct weights for edge-based graph duplicated via nodes.
|
||||||
|
|
||||||
# 5.14.2
|
# 5.14.2
|
||||||
- Changes from 5.14.1:
|
- Changes from 5.14.1:
|
||||||
|
@ -375,7 +375,9 @@ EdgeBasedGraphFactory::GenerateEdgeExpandedNodes(const WayRestrictionMap &way_re
|
|||||||
m_edge_based_node_container.nodes[edge_based_node_id].segregated =
|
m_edge_based_node_container.nodes[edge_based_node_id].segregated =
|
||||||
segregated_edges.count(eid) > 0;
|
segregated_edges.count(eid) > 0;
|
||||||
|
|
||||||
m_edge_based_node_weights.push_back(m_edge_based_node_weights[eid]);
|
const auto ebn_weight = m_edge_based_node_weights[nbe_to_ebn_mapping[eid]];
|
||||||
|
BOOST_ASSERT(ebn_weight == INVALID_EDGE_WEIGHT || ebn_weight == edge_data.weight);
|
||||||
|
m_edge_based_node_weights.push_back(ebn_weight);
|
||||||
|
|
||||||
edge_based_node_id++;
|
edge_based_node_id++;
|
||||||
progress.PrintStatus(progress_counter++);
|
progress.PrintStatus(progress_counter++);
|
||||||
|
Loading…
Reference in New Issue
Block a user