Workshop: Data Quality Improvement¶
This interactive workshop demonstrates the complete workflow for improving OpenStreetMap power plant data quality using the osm-powerplants package.
What You'll Learn¶
- Extract power plant data from OpenStreetMap
- Analyze why certain plants fail validation (rejection tracking)
- Export issues as GeoJSON for fixing in JOSM
- Visualize data on interactive maps
- Verify improvements after OSM edits
Prerequisites¶
- Basic Python knowledge
- Google account (for Colab) or local Python environment
- Optional: JOSM for editing OSM data
Running the Workshop¶
Option 1: Google Colab (Recommended)¶
Click the "Open in Colab" badge above to run the workshop in your browser. No installation required!
Option 2: Local Environment¶
Workshop Sections¶
1. Setup¶
Install the package and import required modules.
2. Extract Power Plant Data¶
Fetch data for a small country (Malta) to demonstrate the extraction process.
3. Rejection Analysis¶
The key feature! Learn why OSM elements fail validation:
- Missing source type → Add
plant:sourcetag - Missing technology type → Add
plant:methodtag - Missing output tag → Add
plant:output:electricitytag - And more...
4. Export for JOSM¶
Generate GeoJSON files that can be loaded into JOSM as a hint layer for fixing issues.
5. Interactive Maps¶
Visualize both rejected elements and valid plants on interactive Folium maps.
6. Verification¶
Re-run the extraction after making OSM edits to measure improvements.
The Feedback Loop¶
osm-powerplants → Identify Issues → Fix in JOSM → Upload to OSM → Verify Improvements
↑ │
└────────────────────────────────────────────────────────────────────┘
This workflow enables continuous improvement of OSM power plant data, which ultimately improves energy system models built with powerplantmatching and PyPSA-Eur.
Related Resources¶
- Quality Tracking Guide - Detailed documentation on rejection tracking
- MapYourGrid - Community mapping strategies
- JOSM - OSM editor for fixing data issues