hydromt_delft3dfm.graph_utils.get_endnodes_from_lines#
- hydromt_delft3dfm.graph_utils.get_endnodes_from_lines(lines: GeoDataFrame, where: str = 'both') GeoDataFrame [source]#
Get the possible boundary locations from the branches with id.
- Parameters:
where ({'both', 'upstream', 'downstream'}) – Where at the branches should the boundaries be derived. An upstream end node: 0 incoming branches and 1 outgoing branch. A downstream end node: 1 incoming branch and 0 outgoing branches.
- Returns:
A dataframe containing all the upstream and downstream end nodes of the branches
- Return type:
gpd.GeoDataFrame