Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def process_buildings(input_gdf, sensitive_sites_gdf, default_building_height_m,
|
|
59 |
else:
|
60 |
building_intersect_desc = f"Building {idx} ({building_name}), height: {building_height_ft}, buffer distance: {buffer_distance_ft} is not in the vicinity of any sensitive sites."
|
61 |
|
62 |
-
intersection_desc
|
63 |
|
64 |
|
65 |
return buffers, intersected_sites, intersection_desc
|
@@ -108,7 +108,7 @@ def ss_intersect(geojson1, ss_geoselect, multiplier_factor, default_building_hei
|
|
108 |
|
109 |
|
110 |
# Return the image
|
111 |
-
return "building_buffers.geojson", intersection_desc
|
112 |
|
113 |
|
114 |
iface = gr.Interface(
|
@@ -121,7 +121,8 @@ iface = gr.Interface(
|
|
121 |
gr.inputs.Number(default=200, label="Default Building Height"), #Can I make this optional?
|
122 |
],
|
123 |
outputs=[
|
124 |
-
gr.outputs.File(label="
|
|
|
125 |
gr.outputs.Textbox(label="Building and Sensitive Site Vicinities"),
|
126 |
],
|
127 |
examples=[
|
|
|
59 |
else:
|
60 |
building_intersect_desc = f"Building {idx} ({building_name}), height: {building_height_ft}, buffer distance: {buffer_distance_ft} is not in the vicinity of any sensitive sites."
|
61 |
|
62 |
+
intersection_desc += "\n" + building_intersect_desc
|
63 |
|
64 |
|
65 |
return buffers, intersected_sites, intersection_desc
|
|
|
108 |
|
109 |
|
110 |
# Return the image
|
111 |
+
return "building_buffers.geojson", "buffer_union.geojson", intersection_desc
|
112 |
|
113 |
|
114 |
iface = gr.Interface(
|
|
|
121 |
gr.inputs.Number(default=200, label="Default Building Height"), #Can I make this optional?
|
122 |
],
|
123 |
outputs=[
|
124 |
+
gr.outputs.File(label="Building Buffers"),
|
125 |
+
gr.outputs.File(label="Union of Building Buffers"),
|
126 |
gr.outputs.Textbox(label="Building and Sensitive Site Vicinities"),
|
127 |
],
|
128 |
examples=[
|