nwm_region_mgr.utils.hydrofabric_utils.dissolve_polygons#

nwm_region_mgr.utils.hydrofabric_utils.dissolve_polygons(gdf, remove_holes=False)[source]#

Dissolve all polygons into one.

Return type:

Union[Polygon, MultiPolygon]

Parameters:
  • gdf (gpd.GeoDataFrame) – GeoDataFrame containing the polygons to dissolve.

  • remove_holes (bool, optional) – If True, remove interior holes from polygons.

Returns:

A single Polygon or MultiPolygon resulting from the dissolve operation.

Return type:

Union[Polygon, MultiPolygon]