Web Scraping and Mapping Dam Levels in Python and Leaflet
Introduction
Installing PostgreSQL and PostGIS
Creating the Database
Installing Django in a Python virtual environment
Installing the ATOM IDE
Creating the Django Base Project
Adding the Database Configuration to settings.py file
Creating a Model in models.py
Extracting Data From the Web
Cleaning and Transforming the Data Part 1
Cleaning and Transforming the Data Part 2
Loading the Data into the Model
Adding the Web Map Tile Service Link in settings.py
Reading from the Model and Creating a GeoJSON Dataset
Adding Template Files the HTML files.
Adding a Layout and the Base Map
Plotting Circle Markers
Creating a Sliding Sidebar
Creating a Doughnut Chart
Creating a Multi-Bar Bar Chart
Creating a KPI
Project Files