Spaces:
Sleeping
Sleeping
import datetime | |
import streamlit as st | |
st.set_page_config(layout="wide") | |
st.sidebar.info( | |
""" | |
- Web App URL: <https://streamlit.gishub.org> | |
- GitHub repository: <https://github.com/CognitiveCodes/NeuralGPT/tree/main> | |
""" | |
) | |
st.sidebar.title("Contact") | |
st.sidebar.info( | |
""" | |
Qiusheng Wu at [wetlands.io](https://wetlands.io) | [GitHub](https://github.com/giswqs) | [Twitter](https://twitter.com/giswqs) | [YouTube](https://www.youtube.com/c/QiushengWu) | [LinkedIn](https://www.linkedin.com/in/qiushengwu) | |
""" | |
) | |
st.title("Comparing Global Land Cover Maps") | |
col1, col2 = st.columns([4, 1]) | |
esa = st.text_area() | |
esa_vis = {"bands": ["Map"]} | |
markdown = """ | |
- [Dynamic World Land Cover](https://developers.google.com/earth-engine/datasets/catalog/GOOGLE_DYNAMICWORLD_V1?hl=en) | |
- [ESA Global Land Cover](https://developers.google.com/earth-engine/datasets/catalog/ESA_WorldCover_v100) | |
- [ESRI Global Land Cover](https://samapriya.github.io/awesome-gee-community-datasets/projects/esrilc2020) | |
""" | |
with col2: | |
server_Port = st.number_input("Port", 1000) | |
clientP_ort = st.number_input("Port",1000) | |
zoom = st.number_input("Zoom", 0, 20, 11) | |
start = st.date_input("Start Date for Dynamic World", datetime.date(2020, 1, 1)) | |
end = st.date_input("End Date for Dynamic World", datetime.date(2021, 1, 1)) | |
start_date = start.strftime("%Y-%m-%d") | |
end_date = end.strftime("%Y-%m-%d") | |
if legend == "Dynamic World": | |
Map.add_legend( | |
title="Dynamic World Land Cover", | |
builtin_legend="Dynamic_World", | |
) | |
elif legend == "ESA Land Cover": | |
Map.add_legend(title="ESA Land Cover", builtin_legend="ESA_WorldCover") | |
elif legend == "ESRI Land Cover": | |
Map.add_legend(title="ESRI Land Cover", builtin_legend="ESRI_LandCover") | |
with st.expander("Data sources"): | |
st.markdown(markdown) | |
with col1: | |
Map.to_streamlit(height=750) |