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

OD Matrix from Layers as Lines (m:n) always reports NULL #49

Closed
iintrater opened this issue May 13, 2021 · 9 comments
Closed

OD Matrix from Layers as Lines (m:n) always reports NULL #49

iintrater opened this issue May 13, 2021 · 9 comments

Comments

@iintrater
Copy link

Same issue as #25 where the output OD Matrix creates a table with all of the origin_id and destination_id, but all of the costs are NULL. From what I read on the previous issue, the issue was patched, but I am using the latest version and still getting the error.
Provided are the test shapefiles I am using.
data.zip

@root676
Copy link
Owner

root676 commented May 13, 2021

Thanks for your message - I did't have time yet to push the fixes to the official QGIS plugin repo. Would you like to test the fix with the latest version in this github repository? It would be rather easy to test - just download the repo as a zip file and unzip it in the QGIS plugin folder (depending on the type of operating system you are using, the location of this folder varies - you can check out this Stack.SE answer for details). Just delete the old QNEAT3 folder from this directory, copy the extracted github repo (QNEAT3 folder) to the plugin directory and start QGIS. The bug should be fixed then.

@josephholler
Copy link

Your network data is stored in CRS 4326 (WGS 1984 geographic coordinate system), so I suggest projecting the network data into the same CRS as your origins and destinations: 26910, a UTM zone. It's recommended to use an equidistant CRS for the network layer and the same CRS for all inputs.
I think @kufreu addressed these CRS issues as part of our last pull request

@iintrater
Copy link
Author

What is the location of the latest version in the github repository? I am very unfamiliar with Github's layout.

@iintrater
Copy link
Author

Your network data is stored in CRS 4326 (WGS 1984 geographic coordinate system), so I suggest projecting the network data into the same CRS as your origins and destinations: 26910, a UTM zone. It's recommended to use an equidistant CRS for the network layer and the same CRS for all inputs.
I think @kufreu addressed these CRS issues as part of our last pull request

I tried doing that, defining the projection of the network to be the same as the origins and destinations, but it was putting it out in the middle of the ocean.

@root676
Copy link
Owner

root676 commented May 13, 2021

You can just navigate to the code section, click on the green button that says code and download as a zip. I don't know if this link works for you : https://github.com/root676/QNEAT3/archive/refs/heads/master.zip

@root676
Copy link
Owner

root676 commented May 13, 2021

For the OD algs it is not necessary to provide a projected coordinate system - this is only mandatory for the isochrone algs.

@iintrater
Copy link
Author

I think I have it downloaded correctly, I renamed the folder from QNEAT3-master to QNEAT3 and placed it into the python->plugins folder. I re-ran the OD Matrix and I still got NULL values. Is there anything I am doing incorrectly?

@root676
Copy link
Owner

root676 commented May 13, 2021

As @josephholler already stated: You are using different coordinate systems for the network and your points. This cannot work as the points don't automatically get reprojected into the coordinate system of the network. Try reprojecting both and your analysis should work - even with the old QNEAT3 version.

@root676 root676 closed this as completed May 13, 2021
@iintrater
Copy link
Author

That worked thanks for your help!

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

No branches or pull requests

3 participants