hydromt_delft3dfm.gis_utils.check_gpd_attributes#
- hydromt_delft3dfm.gis_utils.check_gpd_attributes(gdf: GeoDataFrame, required_columns: list, raise_error: bool = False)[source]#
Check if the geodataframe contains all required columns.
- Parameters:
gdf (gpd.GeoDataFrame, required) – GeoDataFrame to be checked
required_columns (list of strings, optional) – Check if the geodataframe contains all required columns
raise_error (boolean, optional) – Raise error if the check failed