hydromt_sfincs.utils.gdf2linestring#
- hydromt_sfincs.utils.gdf2linestring(gdf: GeoDataFrame) List[Dict] [source]#
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.