Update app.py
Browse files
app.py
CHANGED
|
@@ -1518,8 +1518,8 @@ def locator_page():
|
|
| 1518 |
# If user pressed compute, extract ROI and compute
|
| 1519 |
if st.session_state.get("compute_button", False):
|
| 1520 |
roi = get_roi_from_map(m)
|
| 1521 |
-
|
| 1522 |
-
|
| 1523 |
return
|
| 1524 |
|
| 1525 |
# ensure ROI is ee.Geometry
|
|
|
|
| 1518 |
# If user pressed compute, extract ROI and compute
|
| 1519 |
if st.session_state.get("compute_button", False):
|
| 1520 |
roi = get_roi_from_map(m)
|
| 1521 |
+
if roi is None:
|
| 1522 |
+
st.error("No drawn ROI found. Please draw a polygon/rectangle and press Compute Summaries again.")
|
| 1523 |
return
|
| 1524 |
|
| 1525 |
# ensure ROI is ee.Geometry
|