-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Island pruning #3426
Island pruning #3426
Conversation
There are some things to discuss here:
|
We discussed this in today's meeting and decided that this new feature should be made configurable so it can be disabled as it increases memory consumption and build time. Also, I'll recheck if the current logging and issue storing works as intended and add some unit tests. |
src/main/java/org/opentripplanner/graph_builder/GraphBuilder.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/graph_builder/GraphBuilder.java
Outdated
Show resolved
Hide resolved
dfccb0a
to
aaabde1
Compare
I hand picked all relevant changes from both mfdz and hsldevcom into one singe commit, to get hopefully right content with decent amount of efforts. Some commit history was lost, sorry for that. |
src/main/java/org/opentripplanner/inspector/NoThruTrafficEdgeRenderer.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/graph_builder/module/PruneFloatingIslands.java
Outdated
Show resolved
Hide resolved
…common) Instead, report only main stats about connectivity.
This method is easy to configure and understand
otherwise pruning cannot classify islands with stops
6257d33
to
f6c425a
Compare
changing (especially walk) connectivity of islands with stops can have some undesired side effects, so log warnings and stats about such changes
A brief summary of changes:
Current impementation works better than previous versions. Helsinki area data includes one stop whose walk network (2 edges) is removed by pruning. This is most likely an unusual data error which should be fixed. There are 2 options to tackle the stop isolation problem:
|
src/main/java/org/opentripplanner/graph_builder/GraphBuilder.java
Outdated
Show resolved
Hide resolved
… to solve dual config troubles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good, only a few things since I last read through this.
src/main/java/org/opentripplanner/graph_builder/module/PruneNoThruIslands.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/graph_builder/module/PruneNoThruIslands.java
Show resolved
Hide resolved
src/main/java/org/opentripplanner/graph_builder/module/PruneNoThruIslands.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/inspector/NoThruTrafficEdgeRenderer.java
Outdated
Show resolved
Hide resolved
…ThruIslands.java Co-authored-by: Thomas Gran <t2gran@gmail.com>
…ThruIslands.java Co-authored-by: Thomas Gran <t2gran@gmail.com>
…ThruIslands.java Co-authored-by: Thomas Gran <t2gran@gmail.com>
src/main/java/org/opentripplanner/graph_builder/module/PruneNoThruIslands.java
Outdated
Show resolved
Hide resolved
… return the count and log it from outside.
issueStore.add(new PrunedIslandStop(v)); | ||
} | ||
} | ||
issueStore.add(new GraphIsland(island.getRepresentativeVertex(), island.streetSize())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to see traverse modes (original, removed and resulting, as well as if it was a no through traffic island, but those can be added afterwards)
844a867
Summary
This is #2676 ported over to otp2. Additionally, the streetUtils methods have been moved to be under the PruneFloatingIslands class as suggested in the old pr.
Issue
#2675
Unit tests
To be added
Code style
Formatted the PruneFloatingIslands file to follow the code style convention
Documentation
It should be decided if this feature should be configurable as suggested in #2676 (comment) or not.
Changelog
To be added