-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add export endpoint #269
Add export endpoint #269
Conversation
Should we wait for this to be available in the public API? |
Translation still missing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good so far :)
Translation is missing @koebi
ORStools/proc/export_proc.py
Outdated
to_coords = self.get_location_by_id(to_id, response["nodes"]) | ||
from_coords = self.get_location_by_id(from_id, response["nodes"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This iterates all nodes twice for every edge, taking what is in theory a linear operation and making it quadratic.
I think it makes sense to parse nodes into a dict to look up coordinates easily.
After testing for a bit, I think it makes sense to also export nodes into a separate layer - it's a bit too tricky from my perspective to correctly parse them from the edge layer. |
Extent choosable via QgsProcessingParameterExtent.