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

False warning for highways connected only to unloaded highways #5938

Closed
kymckay opened this issue Feb 22, 2019 · 5 comments
Closed

False warning for highways connected only to unloaded highways #5938

kymckay opened this issue Feb 22, 2019 · 5 comments
Labels
bug A bug - let's fix this! validation An issue with the validation or Q/A code
Milestone

Comments

@kymckay
Copy link
Collaborator

kymckay commented Feb 22, 2019

See this scenario:
image

If you open location map=18/57.08568/-2.14301 and hover over the highway, it is flagged as disconnected. In reality, it is connected, but just so long that (I assume) iD hasn't loaded the data where it connects to the rest of the network.

@kymckay kymckay added bug A bug - let's fix this! validation An issue with the validation or Q/A code labels Feb 22, 2019
@quincylvania
Copy link
Collaborator

@SilentSpike Yep, I've seen this plenty of times in testing. It'd be nice to resolve this accurately by downloading more nearby/connecting data (see #5180). In the meantime we could ignore disconnected highways that overlap non-downloaded tiles.

@quincylvania quincylvania changed the title False positive disconnected highway warning False warning for highways connected only to unloaded highways Feb 22, 2019
@bhousel
Copy link
Member

bhousel commented Feb 26, 2019

related #2248

@pnorman
Copy link
Contributor

pnorman commented Mar 4, 2019

@SilentSpike Yep, I've seen this plenty of times in testing. It'd be nice to resolve this accurately by downloading more nearby/connecting data (see #5180).

You'd have to issue map calls along the length of the way, which could get expensive. You'll also then up with a bunch of new ways which exit the downloaded area.

In the meantime we could ignore disconnected highways that overlap non-downloaded tiles.

I think this is the better choice. Errors of this type outside the downloaded area were obviously not created in the current editing session.

bhousel added a commit that referenced this issue Apr 8, 2019
@bhousel
Copy link
Member

bhousel commented Apr 10, 2019

In the meantime we could ignore disconnected highways that overlap non-downloaded tiles.

I just added this to #6140 🎉

I also noticed that both the disconnected_ways and almost_junction validations are vulnerable to this, so I'm fixing it in both places.

In this example below, the left tile was loaded first, and an almost_junction warning was raised before the right tile loaded.

Screenshot 2019-04-10 12 14 02

I'll think more about this too, because anyplace in the code that we test the parentWays of a vertex that might not be on the visible map is risky.

For example, we check parentWays of vertices in the turn restriction editor, but the vertex has to be visible and selected for iD to even do anything. Might be worth adding defensive code anyway, in case the intersection extends off the screen and into unloaded map.

@bhousel
Copy link
Member

bhousel commented Apr 23, 2019

Done in #6140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug - let's fix this! validation An issue with the validation or Q/A code
Projects
None yet
Development

No branches or pull requests

4 participants