root676 / QNEAT3

QNEAT3 - Qgis Network Analysis Toolbox 3
GNU General Public License v3.0
63 stars 12 forks source link

From-Points at dead-ends for OD Matrix #46

Closed Athelena closed 3 years ago

Athelena commented 3 years ago

Thanks for these tools, my colleague and I find them really helpful!

We did find a quirk that we think could do with some thinking about. We have a point that is at a dead-end between two 1-way lanes going in opposite directions:

image

It seems the point is choosing the top lane to access the network, but because it's choosing the dead-end of a 1-way lane it is ignored in the calculation because it cannot access any of the To-Points. If we change these dead-ends From-Points to be To-Points instead, they can now be accessed.

We have several examples like this in our dataset since we find it rather common to have large facilities connected to dead-end entry and exit lanes.

root676 commented 3 years ago

Thanks for pointing this out. Unfortunately there is no way to fix this on the software side. The only solution is to physically move the point towards the link you want it to connect to. The problem is rooted in the underlying QGIS network analysis classes that QNEAT3 uses. When points are tied to the network edges, the points jump to the nearest edge (which seems to be the wrong one in your case). Currently is no way for the point to figure out that the edge it is assigned to is a dead end.

josephholler commented 3 years ago

I second @root676. You would likely have the same problem in any network analysis software. I'd suggest creating a two-way line between your end points in each of these scenarios so that routing could go either way no matter which end point the facility ties to. You might even be able to figure out a way to create these lines automatically by searching for end points with one-way values within a small distance.

Athelena commented 3 years ago

Yes we had the same thought process as well and did connecting lines between the ends points. And indeed it had failed in Arc as well. To be honest we thought more to share it as a curiosity since we didn't figure out the issue right away. So many things can go wrong when working with a network 😅 So we thought we'd raise the issue in case anybody else forgot to consider this.

Again thanks so much for your great tools and looking forward to what's to come next 😃

root676 commented 3 years ago

Thanks for raising this and thanks for this solution path @josephholler. Network analysis can raise some tricky problems sometimes :wink: