WikiWatershed / global-hydrography

Scripts to explore and process global hydrography (stream lines and basin boundaries) for Model My Watershed
MIT License
1 stars 0 forks source link

Dissolving Logic for Upstream Watershed Boundary Given LINKNO/streamID #7

Open ptomasula opened 3 months ago

ptomasula commented 3 months ago

Summary

With the modified nest set index now implemented (MSNI) (see #3), the next step is to develop logic to utilize the MSNI to rapidly delineate a watershed polygon given the LINKNO/streamID for a reach. Some of the logic for how to utilize the MNSI is provided in this section of the README file.

The task for this issue is to develop the delineation logic and return a single polygon representing the upstream watershed of a provided reach id (LINKNO/streamID)

Closure Criteria

ptomasula commented 3 months ago

In exploring performance for some of the dissolve logic, it seems likely that we will need to implement some sort of pre-dissolve layer to maintain an acceptable level of performance for larger watersheds. I'll open a new issue to for the development of that logic, though I do provide a draft implementation in 0ab4609.