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

Bug: NearestEdgeFinder. getNearestEdges does not find anything in wgs84-networks #7

Open
MHeinrichs opened this issue May 19, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@MHeinrichs
Copy link
Collaborator

MHeinrichs commented May 19, 2020

getNearestEdges descents in an rtree depending on the size of the network until the "viewDist" is reached (line 92). The number 10 is suitable, if the net-size is given in meters. When using wgs84 coordinates the size is given in radiants. Ths makes the loop aboard and no edges are found.

Proposed fix: compute the size of the network in meters.

@aschengen
Copy link
Collaborator

aschengen commented May 20, 2020

Hello @MHeinrichs ,
thank you for reporting this bug. Indeed, there is an issue in mixing geodetic and projected metrics [as parts of the application (eg.: nearest edge finder) do expect] and we are working on it. We consider your proposal and weight it against the opposite approach as in transforming the treshhold into degrees. The latter approach though results into some (more or less considerable) inconsistencies in large spatially expanding networks.

As a workaround you can specifiy a metric coordinate system by using the "--epsg 25833" flag at command line level when starting the application.

@aschengen aschengen added the bug Something isn't working label May 20, 2020
@dkrajzew dkrajzew added this to the post0.6 milestone Feb 10, 2023
@dkrajzew dkrajzew removed this from the post0.6 milestone Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants