Skip to content
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

[SinkIslandCheck] sink islands surrounded by pedestrian ways #227

Merged
merged 16 commits into from
Feb 19, 2020

Conversation

seancoulter
Copy link
Collaborator

@seancoulter seancoulter commented Dec 12, 2019

Description:

This PR does the following:

--Adds a switch to allow for candidate sink island edges (highway=service+ edges with valid accessibility tags) WITHOUT a motor_vehicle tag to be flagged if those candidate edges are surrounded by pedestrian ways.
--Ignores such candidate sink islands with motor_vehicle=yes tags that are surrounded by pedestrian ways.

Potential Impact:

With the switch on, we should expect to see more flags as a result of sink islands surrounded by pedestrian ways being flagged.
Regardless of the switch, we should anticipate some diffs to account for the fact that we now ignore sink islands with motor_vehicle=yes tags that are surrounded by pedestrian ways.

The check has a known nondeterminism issue that affects flag counts across runs. We estimate the effect on flags to be some additions with mirrored subtractions or just subtractions. Additions and mirrored subtractions means part of the Way was flagged in one run, and another part of the Way was flagged in another run, causing an addition and subtraction on the same Way. We are looking into ways to fix this.

Depending on country size, we can expect flag additions with some subtractions to be an added 20-30% flag count from baseline.

Unit Test Approach:

Added some new unit tests.

Test Results:

Tests pass

@seancoulter seancoulter changed the title [SinkIslandCheck] sink islands surrounded by pedestrian ways [DNM - analysis][SinkIslandCheck] sink islands surrounded by pedestrian ways Dec 20, 2019
@seancoulter seancoulter changed the title [DNM - analysis][SinkIslandCheck] sink islands surrounded by pedestrian ways [SinkIslandCheck] sink islands surrounded by pedestrian ways Feb 12, 2020
@@ -799,6 +799,7 @@
"SinkIslandCheck": {
"tree.size": 50,
"minimum.highway.type": "service",
"filter.pedestrian.network": true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the default config going to be true for "filter.pedestrian.network"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be false to maintain baseline outputs. Thanks

Copy link
Collaborator

@sayas01 sayas01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

Copy link
Collaborator

@danielduhh danielduhh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! What should we expect in terms of flag count changes?

@sonarcloud
Copy link

sonarcloud bot commented Feb 19, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

82.1% 82.1% Coverage
0.0% 0.0% Duplication

Copy link
Collaborator

@Bentleysb Bentleysb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Copy link
Collaborator

@danielduhh danielduhh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind updating the "pending more analysis note"? Thanks!

@danielduhh danielduhh merged commit cb1c7d1 into osmlab:dev Feb 19, 2020
@seancoulter
Copy link
Collaborator Author

@danielduhh updated description with flag count expectations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants