- hydromt_sfincs.utils.gdf2structures(gdf: GeoDataFrame) List[Dict]
Convert GeoDataFrame[LineString] to list of structure dictionaries
The x,y are taken from the geometry. For weir structures to additional paramters are required, a “z” (elevation) and “par1” (Cd coefficient in weir formula) are required which should be supplied as columns (or z-coordinate) of the GeoDataFrame. These columns should either contain a float or 1D-array of floats with same length as the LineString.
gdf (geopandas.GeoDataFrame with LineStrings geometries) – GeoDataFrame structures.
feats – List of dictionaries describing structures.
- Return type
list of dict