Same coord points will always intersect #6
Labels
No Label
Bug
Feature
Improvement
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: markus/lifo-dijkstraserv#6
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
We do need a layer property on nodes after all. If we create trainline A on layer A, and trainline B an layer B, but they have a common point, both lines will intersect and allow an interchange here.
Alternatively, I could probably implement some logic preventing us to move from TL A to TL B in the dijkstra... but that seems dirty.
Another quick (and not quite as dirty hack) would be to add a
no_exist_check
argument todijkstra_node_new
viadijkstra_path_new_to_list
anddijkstra_node_new_to_list
that is se for train layers, which will then always append the new entry. This would allow for two distinct points on the same coord. Might cause headaches down the road though...Or, even cheaper, never merge if new AND old are of time train. That's even better I think. And faster.
EDIT: Actually, no. We don't have this info where we need it (as we don't have point layers, only path layers.)