Skip to content

Commit

Permalink
add lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Santonia27 committed Jan 10, 2025
1 parent 523202b commit af545cd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions flood_adapt/database_builder/create_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,13 +1097,13 @@ def update_fiat_elevation(self):
exposure.loc[
exposure["Primary Object Type"] == "road", "Ground Floor Height"
] = 0
exposure = exposure.merge(
roads[["Object ID", "elev"]], on="Object ID", how="left"
)
exposure.loc[exposure["Primary Object Type"] == "road", "Ground Elevation"] = (
exposure.loc[exposure["Primary Object Type"] == "road", "elev"]
)
del exposure["elev"]
exposure = exposure.merge(
roads[["Object ID", "elev"]], on="Object ID", how="left"
)
exposure.loc[
exposure["Primary Object Type"] == "road", "Ground Elevation"
] = exposure.loc[exposure["Primary Object Type"] == "road", "elev"]
del exposure["elev"]

buildings_path = Path(self.fiat_model.root) / "exposure" / "buildings.gpkg"
points = gpd.read_file(buildings_path).to_crs(dem.spatial_ref.crs_wkt)
Expand Down

0 comments on commit af545cd

Please sign in to comment.