hydromt_sfincs.utils.gdf2polygon#

hydromt_sfincs.utils.gdf2polygon(gdf: GeoDataFrame) List[Dict][source]#

Convert GeoDataFrame[Polygon] to list of structure dictionaries

The x,y are taken from the geometry.

Parameters:

gdf (geopandas.GeoDataFrame with LineStrings geometries) – GeoDataFrame structures.

Returns:

feats – List of dictionaries describing structures.

Return type:

list of dict