hydromt_delft3dfm.workflows.snap_newbranches_to_branches_at_snappednodes#

hydromt_delft3dfm.workflows.snap_newbranches_to_branches_at_snappednodes(new_branches: GeoDataFrame, branches: GeoDataFrame, snappednodes: GeoDataFrame)[source]#

Snap new_branches to branches at snappednodes.

snapnodes are located at branches. new branches will be snapped, and branches will be splitted.

# NOTE: no interpolation of crosssection is needed because inter branch interpolation is turned on using branchorder.

Parameters:
  • new_branches (geopandas.GeoDataFrame) – Geodataframe of new branches whose geometry will be modified: end nodes will be snapped to snapnodes

  • branches (geopandas.GeoDataFrame) – Geodataframe who will be splitted at snapnodes to allow connection with the new_branches.

  • snapnodes (geopandas.GeoDataFrame) – Geodataframe which contiains the spatial relation of the new_branches and branches.

Returns:

  • new_branches_snapped (geopandas.GeoDataFrame) – Geodataframe of new branches with endnodes be snapped to snapnodes in branches_snapped.

  • branches_snapped (geopandas.GeoDataFrame) – Geodataframe of branches splitted at snapnodes to allow connection with the new_branches_snapped.