This project provides a visual representation of the provinces in the Emilia-Romagna region of Italy using Python, GeoPandas, and Matplotlib. The map highlights each province within the region, providing a clear and detailed view.
Ensure you have Python installed on your machine. This project uses Poetry for dependency management and Jupyter Notebook for running the script.
-
Clone the Repository
git clone git@github.com:estyxx/maps.git cd maps
-
Install Dependencies
This project uses Poetry for dependency management. Install Poetry if you haven't already.
curl -sSL https://install.python-poetry.org | python3 -
Then, install the project dependencies:
poetry install
-
Visit the GADM download page.
-
Select "Italy" from the list of countries.
-
Download the shapefiles for the desired administrative level. For this project, the second level (provinces) is used.
-
Extract the downloaded ZIP file to a known location on your computer.
-
Launch Jupyter Notebook
poetry run start-notebook
-
Open the Notebook
Open the notebook file provided in the repository.
-
Update the Path
In the notebook, update the path to the GADM shapefile you downloaded and extracted.
provinces = gpd.read_file('path_to_your_shapefile.shp')
-
Run the Notebook
Execute the cells in the notebook to generate the map of the Emilia-Romagna provinces.