This project analyzes street names using OpenStreetMap (OSM) data and provides an interactive web application to explore and compare the most frequent street names per region.
The project was developed as part of an Open Source GIS course and focuses on:
- Spatial data processing (ETL)
- PostGIS spatial database
- Interactive data exploration with Streamlit
Street Name Battle
The application allows users to:
- Select a region
- View the Top 10 most frequent street names in that region
- Compare two street names (e.g. PASTEUR vs GAULLE)
- Visualize the spatial distribution of streets on an interactive map
All spatial data is stored in the data/ folder:
-
OSM Roads
gis_osm_roads_free_1.*
โ Road network extracted from OpenStreetMap -
Administrative Regions
regions_20140306_5m.*
โ Regional boundaries used for spatial aggregation
Data is provided in ESRI Shapefile format.
OSM Shapefiles โ ETL Pipeline (GeoPandas) โ PostGIS Database โ Streamlit Web Application
The ETL process is implemented in:
Final_ETL.py
- Load road and region shapefiles
- Perform spatial join (assign each road to a region)
- Clean and normalize street names
- Aggregate duplicate street segments
- Export processed data to PostGIS
rues_nettoyees
- PostgreSQL
- PostGIS extension
CREATE DATABASE gis_project_db;
\c gis_project_db
CREATE EXTENSION postgis;
๐ How to Run the Project
1๏ธโฃ Install Python dependencies
pip install -r requirements.txt
2๏ธโฃ Run the ETL pipeline
python Final_ETL.py
3๏ธโฃ Launch the web application
streamlit run Final_WebApp.py
๐ Web Application Features
Region selection
Top 10 most frequent street names
Street name comparison (battle mode)
Interactive map visualization (Folium)
๐ ๏ธ Technologies Used
Python
GeoPandas
PostGIS
PostgreSQL
SQLAlchemy
Streamlit
Folium
OpenStreetMap data
๐ Academic Context
This project was developed for an academic course and demonstrates:
Spatial data processing
Database-driven GIS workflows
Open-source geospatial technologies
License
- Code: MIT License
- Data: OpenStreetMap data ยฉ OpenStreetMap contributors, licensed under the Open Database License (ODbL)