Calculate the ratio of Natura2000 area to municipality area
https://natura-ratio.streamlit.app
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| .gitignore | ||
| .python-version | ||
| LICENSE | ||
| main.py | ||
| pyproject.toml | ||
| README.md | ||
| test_main.py | ||
| uv.lock | ||
Natura2000 area ratio analysis app
A Streamlit application to display Natura2000 territories overlaid on administrative map of Republic of Latvia and calculate ratio of Natura2000 territory area to municipalities area.
Features
- Load and visualize Natura2000 territories data
- Load and display administrative boundaries
- Calculate and analyze spatial ratios between protected areas and administrative regions
Installation
-
Clone this repository:
git clone https://codeberg.org/clear9550/natura-ratio.git cd natura-ratio -
Install dependencies using uv:
uv sync
Usage
-
Run the Streamlit application:
uv run streamlit run main.py
Data Functions
The application includes several key data processing functions:
\_load_natura(): Loads Natura2000 protected areas data with caching\_load_admin(): Loads administrative boundaries data with cachingcompute_ratio(): Calculates spatial ratios between datasets\_gdf_to_geojson(): Converts GeoDataFrames to GeoJSON format
Deployment
The application is deployed on Streamlit Community Cloud.
License
This project is licensed under the MIT License - see the LICENSE file for details.