Spaces:
Sleeping
Sleeping
castledan
commited on
Commit
Β·
235bcb4
1
Parent(s):
55fda2f
correct typos and add polygons
Browse files
app/pages/1_π_Flood_extent_analysis.py
CHANGED
@@ -103,7 +103,7 @@ def app():
|
|
103 |
draw_options={
|
104 |
"circle": False,
|
105 |
"polyline": False,
|
106 |
-
"polygon":
|
107 |
"circle": False,
|
108 |
"marker": False,
|
109 |
"circlemarker": False,
|
@@ -113,20 +113,8 @@ def app():
|
|
113 |
Geocoder(add_marker=False).add_to(Map)
|
114 |
# Add minimap to map
|
115 |
MiniMap().add_to(Map)
|
116 |
-
# Add file uploader for GeoJSON to add polygons to map
|
117 |
-
# data = st.file_uploader(
|
118 |
-
# "Upload a GeoJSON file to use as an ROI.",
|
119 |
-
# type=["geojson", "kml", "zip"],
|
120 |
-
# )
|
121 |
-
# ss = st.empty()
|
122 |
-
# with ss:
|
123 |
# Export map to Streamlit
|
124 |
output = st_folium(Map, width=800, height=600)
|
125 |
-
# if data is not None:
|
126 |
-
# with ss:
|
127 |
-
# # gj = geojson.load(data)
|
128 |
-
# # coords = gj['features'][0]['geometry']['coordinates']
|
129 |
-
# st.write('Still to be implemented')
|
130 |
with col2:
|
131 |
# Add collapsable container for image dates
|
132 |
with st.expander("Choose Image Dates"):
|
@@ -246,8 +234,7 @@ def app():
|
|
246 |
"""
|
247 |
No satellite image found for the selected
|
248 |
dates.\n\n
|
249 |
-
Try changing the pass direction
|
250 |
-
polarization.\n\n
|
251 |
If this does not work, choose different
|
252 |
dates: it is likely that the satellite did not
|
253 |
cover the area of interest in the range of
|
|
|
103 |
draw_options={
|
104 |
"circle": False,
|
105 |
"polyline": False,
|
106 |
+
"polygon": True,
|
107 |
"circle": False,
|
108 |
"marker": False,
|
109 |
"circlemarker": False,
|
|
|
113 |
Geocoder(add_marker=False).add_to(Map)
|
114 |
# Add minimap to map
|
115 |
MiniMap().add_to(Map)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
# Export map to Streamlit
|
117 |
output = st_folium(Map, width=800, height=600)
|
|
|
|
|
|
|
|
|
|
|
118 |
with col2:
|
119 |
# Add collapsable container for image dates
|
120 |
with st.expander("Choose Image Dates"):
|
|
|
234 |
"""
|
235 |
No satellite image found for the selected
|
236 |
dates.\n\n
|
237 |
+
Try changing the pass direction.\n\n
|
|
|
238 |
If this does not work, choose different
|
239 |
dates: it is likely that the satellite did not
|
240 |
cover the area of interest in the range of
|
app/pages/2_π_Documentation.py
CHANGED
@@ -140,7 +140,7 @@ st.markdown(
|
|
140 |
)
|
141 |
|
142 |
# Third section
|
143 |
-
st.markdown("## Key
|
144 |
st.markdown(
|
145 |
"""
|
146 |
Radar imagery is great for detecting floods, as it is good at picking up
|
|
|
140 |
)
|
141 |
|
142 |
# Third section
|
143 |
+
st.markdown("## Key limitations")
|
144 |
st.markdown(
|
145 |
"""
|
146 |
Radar imagery is great for detecting floods, as it is good at picking up
|