WikiWatershed / global-hydrography

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

Implement Modified Nest Set Index for Rapid Watershed Delineation #3

Open ptomasula opened 2 weeks ago

ptomasula commented 2 weeks ago

Summary

The paper Development of a data model to facilitate rapid watershed delineation proposes a graph algorithm based approach for watershed delineation using a modified nested set index. The outlined approach would allow selection of upstream reaches from a given node (reach) based on two numerical indices, in place of more conventional techniques like adjacency lists or binary search.

Closure Criteria

ptomasula commented 6 days ago

Thanks @aufdenkampe for connecting and helping debug this issue. As noted in the commit message for b21c352, the pervious implementation's conversion from a GeoDataFrame into a dictionary and back again was resulting in the loss of critical type information (e.g. CRS). As a result, the write method was not able to function correctly. The example notebook should be working now.