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

Include offset from node in calculation #6

Open
root676 opened this issue Oct 18, 2017 · 0 comments
Open

Include offset from node in calculation #6

root676 opened this issue Oct 18, 2017 · 0 comments
Assignees

Comments

@root676
Copy link
Owner

root676 commented Oct 18, 2017

Possible to use spatialIndex methods to get the next network arc, then use QgsGeometry nearest point to determine the nearest point on the linestring, then cut linestring at this point and measure lengths to the beginning nearest node (starting point).

Simpler approach: just use crows distance and detour factor of 1.2 to the nearest node (QgsGeometry.shortestLine()).

@root676 root676 self-assigned this Oct 18, 2017
@root676 root676 added this to the precision enhancements milestone Oct 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant