Id: False warning for highways connected only to unloaded highways

Created on 22 Feb 2019  路  5Comments  路  Source: openstreetmap/iD

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.

bug validation

Most helpful comment

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.

All 5 comments

@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.

related #2248

@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.

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.

Done in #6140

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tordans picture tordans  路  3Comments

tordans picture tordans  路  3Comments

tordans picture tordans  路  3Comments

Sirvanalie picture Sirvanalie  路  3Comments

scaidermern picture scaidermern  路  3Comments