root676 / QNEAT3

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

[Enhancement] report NULL or delete OD pairs with no routes #26

Closed jecogeo closed 1 year ago

jecogeo commented 4 years ago

Dear @root676 , after Issue 25, the tool is working great. I just ran for more than a million O-D pairs and it is working like a charm. I'd like to reccomend an enhacement though: When no route is found for a given O-D pair, the last valid total_cost is taken, generating the false impression of distance. If someone is in a rush, it seems always went ok. When carefullly inspecting my +1M resulting table, I noticed several duplicated values in the total_cost column. After comparing these duplicated values with the standard shortest path QGIS tool, I realized where those duplicated values came from.

As an improvement to avoid false impressions/conclusions to your users, I'd like to suggest to chain your tool with Vector general > delete duplicates by attribute or report NULL instead. Some outputs in the logs might be usefull too. This is just a suggestion and I understand if it doesn't fit your beforehand design, anyway.

Cheers

root676 commented 4 years ago

Thanks for the feedback! This should definitely be handled by QNEAT3.

apotapop commented 3 years ago

Hi just to follow up on this, is there a solution that could help in removing these duplicated values? I am using the OD Matrix tool not only to calculate distance between points, but also to establish whether or not there is connectivity between specific pairs of points at all. The duplicated values give the false impression that pairs of points are connected when they are not, and it is impossible to determine which duplicate is the correct one to keep. Seems like this is a major problem for large datasets where manually checking whether or not two points are actually connected is impossible. Thanks!

spatialthoughts commented 3 years ago

+1 to fix this. This results in wrong results when trying to process the distance matrix.

caaficus commented 2 years ago

Dear @root676,

Is there any update on this issue? Or any alternative solution we can implement to deal with it?

Thanks in advance for your support!

root676 commented 2 years ago

@caaficus as you see I pushed a fix for this problem earlier this year to the repository. Unfortunately I have not yet been able to publish an update in the QGIS plugin repo due to ongoing work on QNEAT3. You can just download this github repository and replace the QNEAT3 folder in the QGIS plugin folder with this repo. Then it should work.

caaficus commented 2 years ago

@root676 It works! Thanks a lot!

wdossett commented 1 year ago

Hi @root676 , just checking if this bug has been fixed in the plugin, or should we still be updating from the repository?

root676 commented 1 year ago

Implemented in 1.0.5