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. |
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. |
…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:
|
Dead transit links can be removed, but one should not touch already indexed transit stops
… to solve dual config troubles
t2gran
left a comment
There was a problem hiding this comment.
Look good, only a few things since I last read through this.
…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>
… 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.
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