Open sahand-asgarpour opened 1 month ago
master
Introduce a hazard file with the gpkg format.
` def _from_geodataframe(self, hazard_overlay: GeoDataFrame) -> GeoDataFrame: gdf_crs_original = hazard_overlay.crs
def geodataframe_overlay(hazard_shp_file: Path, ra2ce_name: str): gdf_hazard = read_file(str(hazard_shp_file)) if hazard_overlay.crs != gdf_hazard.crs: hazard_overlay = hazard_overlay.to_crs(gdf_hazard.crs)`
UnboundLocalError: local variable 'hazard_overlay' referenced before assignment
inundated fraction (key: fr) is missing
Error to be resolved.
No response
Ra2ce version checks
master
here.Reproducible example
Introduce a hazard file with the gpkg format.
Current behaviour
` def _from_geodataframe(self, hazard_overlay: GeoDataFrame) -> GeoDataFrame: gdf_crs_original = hazard_overlay.crs
UnboundLocalError: local variable 'hazard_overlay' referenced before assignment
inundated fraction (key: fr) is missing
Desired behaviour
Error to be resolved.
Additional context
No response