https://github.com/jackdbd/aree-protette
Exploratory data analysis and visualization of a small geospatial dataset with geoviews.
https://github.com/jackdbd/aree-protette
geopandas geoviews spatialite sqlite3 tuscany
Last synced: 3 months ago
JSON representation
Exploratory data analysis and visualization of a small geospatial dataset with geoviews.
- Host: GitHub
- URL: https://github.com/jackdbd/aree-protette
- Owner: jackdbd
- License: mit
- Created: 2018-07-13T07:04:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-22T08:35:22.000Z (almost 7 years ago)
- Last Synced: 2025-01-17T21:29:29.253Z (5 months ago)
- Topics: geopandas, geoviews, spatialite, sqlite3, tuscany
- Language: Jupyter Notebook
- Homepage:
- Size: 3.84 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sites of Community Importance in Tuscany
[](https://mybinder.org/v2/gh/jackdbd/aree-protette/master)
Exploratory data analysis and visualization of a small geospatial dataset with geoviews.

According to [Wikipedia](https://en.wikipedia.org/wiki/Site_of_Community_Importance):
> A Site of Community Importance (SCI) is defined in the European Commission Habitats Directive (92/43/EEC) as a site which, in the biogeographical region or regions to which it belongs, contributes significantly to the maintenance or restoration at a favourable conservation status of a natural habitat type or of a species and may also contribute significantly to the coherence of Natura 2000, and/or contributes significantly to the maintenance of biological diversity within the biogeographic region or regions concerned.
They are proposed to the Commission by the State Members and once approved, they can be designated as SACs by the State Member.
Built with:
- Geopandas
- Geoviews
- Cartopy
- Matplotlib
- Contextily
- Spatialite## Data
You will need to download these datasets to run the noteook.
Regione Toscana – [Limiti amministrativi](http://dati.toscana.it/dataset/amb-amm) (License: [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)).
Regione Toscana – [Siti di Interesse Regionale, Siti di Importanza Comunitaria, Zone di Protezione Speciale](http://dati.toscana.it/dataset/sir) (License: [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)).
If you want to reproduce the notebook, follow the instructions in `data/README.md`.
## Run the notebook with Binder
[Binder](https://github.com/jupyterhub/binderhub) builds a docker image from a git repository + commit, so you can run the notebook `aree-protette.ipynb` in the cloud, without installing anything on your machine.## Installation
If you want to run the notebook locally, you need to create a conda environment. The easiest way to obtain the conda package manager is to install a Python distribution like [Miniconda](https://conda.io/miniconda.html) or [Anaconda](https://repo.continuum.io/). I like Miniconda.
You can create a conda environment, install all the required dependencies, and activate the environment in two ways.
```shell
# option 1: use the environment.yml file
conda create --file environment.yml
source activate aree-protette
``````shell
# option 2: create a new empty environment
conda create --name aree-protette python=3.6 --yes
source activate aree-protette
conda install -c pyviz geoviews -y
conda install -c conda-forge sqlalchemy contextily -y
```*Note:* installing all the required dependencies might take a while, go grab a cup of coffee :coffee:
## Usage
When all dependencies have been installed, run the notebook:
```shell
jupyter notebook
```## Install the SQLite geospatial extension: Spatialite
```sh
sudo apt-get update
sudo apt-get install spatialite-bin
```
## Other
You can freeze your environment with:
```shell
conda env export > environment.yml
```To remove this conda environment, run:
```shell
conda env remove -n aree-protette
```