WikiWatershed / model-my-watershed

The web application front end for Model My Watershed.
https://modelmywatershed.org
Apache License 2.0
57 stars 31 forks source link

AWS 2-8: Global Watershed Delineation Back-end #3662

Closed rajadain closed 23 hours ago

rajadain commented 5 days ago

Overview

Adds development data for TDX Basins, used for global watershed delineation. This subset is 200 miles around Philadelphia.

image

This also adds URLs, Views, Tasks, and Calcs to allow for delineation. The actual algorithm uses the nested set index developed in https://github.com/WikiWatershed/global-hydrography/?tab=readme-ov-file#modified-nested-set-index.

Even though this is highly performant, enough to be a synchronous response, we still use the async job workflow for two reasons:

  1. To maintain conformity with the rest of the API
  2. To log requests in the back-end, so that we have a record of them

Closes #3658

Demo

When the watershed resulting from the default point is loaded in QGIS, it looks like this:

image

Testing Instructions

rajadain commented 23 hours ago

Thanks for reviewing! I added some documentation to the global-watershed endpoint in c6231c5. Will merge once green.