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

downstream trace #70

Open
smnorris opened this issue Oct 22, 2021 · 4 comments
Open

downstream trace #70

smnorris opened this issue Oct 22, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@smnorris
Copy link
Owner

smnorris commented Oct 22, 2021

A function returning downstream stream network features would be useful. Particularly as aggregated/simplified features as MVT for a web map query.

Even more fun would be to add the Peace/Mackenzie, Columbia, etc centrelines to the db, making the downstream trace more comprehensive. This would be very simple for major systems. For smaller streams and streams that meander in and out of the province it may require more effort than it is worth.

@smnorris smnorris added the enhancement New feature or request label Oct 22, 2021
@smnorris
Copy link
Owner Author

#145

@smnorris
Copy link
Owner Author

Function added: 6171e3e

Todo:

  • wrap in MVT (or test direct performance with pgts)
  • add downstream USA blue lines

@smnorris
Copy link
Owner Author

smnorris commented Feb 13, 2024

Consider adding a boolean parameter that flags whether or not to return side channels.
For fish migration, desired behaviour would generally be the shortest/primary route to the ocean, not all the adjacent/alternative paths?
https://features.hillcrestgeo.ca/fwa_test/functions/postgisftw.fwa_downstreamtrace/items.html?start_blue_line_key=356364114&start_measure=138150
Screenshot 2024-02-13 at 2 25 10 PM

Note that filtering out side channels from the result won't quite work - function needs to support side channel origins that are connected to destination. This might require a recursive query?

@smnorris
Copy link
Owner Author

Supporting origins on side channels with a recursive query that processes the geom endpoints is probably fine - only a very small number of features will be used. But just using pg_routing seems like an easier solution, and that would support general upstream/downstream shortest path routing as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant