Watch
1
0
Fork
You've already forked natura-ratio
0
Calculate the ratio of Natura2000 area to municipality area https://natura-ratio.streamlit.app
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-13 14:43:13 +03:00
.forgejo/workflows Add .forgejo/workflows/scan_vulnerabilities.yml 2026-03-23 21:39:30 +01:00
.gitignore Editing .gitignore 2026-03-30 18:49:50 +03:00
.python-version Initial commit 2026-03-23 22:34:36 +02:00
LICENSE Add LICENSE 2026-03-23 21:38:43 +01:00
main.py Update menu items' links 2026-08-13 14:31:34 +03:00
pyproject.toml Update packages 2026-08-13 14:43:13 +03:00
README.md Updating readme 2026-03-24 00:11:28 +02:00
test_main.py Adding unittests 2026-03-30 19:26:49 +03:00
uv.lock Update packages 2026-08-13 14:43:13 +03:00

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

  1. Clone this repository:

    git clone https://codeberg.org/clear9550/natura-ratio.git
    cd natura-ratio
    
  2. Install dependencies using uv:

    uv sync

Usage

  1. 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 caching
  • compute_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.