A proof of concept that exposes Overture Maps building data through an OGC Web Feature Service (WFS 2.0) and demonstrates how the service can be consumed by GeoServer, QGIS and a web map.
The project reads Overture GeoParquet data on demand for the requested bounding box instead of preloading a complete global dataset. Retrieved buildings are kept in PostGIS so previously requested areas can be reused.
This repository is a research and interoperability prototype, originally presented at FOSS4G 2024. It currently:
- serves the Overture buildings theme;
- supports BBOX-driven WFS requests;
- reads Overture data through the
overturemapsPython package; - caches requested areas and features in PostGIS;
- exposes the Django WFS directly and through a cascaded GeoServer layer;
- includes QGIS and MapLibre examples.
It is not a production deployment template. The included credentials, open CORS, debug settings and published ports are intended only for local development.
WFS/QGIS/MapLibre request with BBOX
│
▼
Django + django-gisserver
│
Overture data reader
│
▼
PostGIS request cache
│
├────────► direct WFS 2.0
│
└────────► GeoServer cascaded WFS / WMS
The Docker Compose environment contains four services:
overturemapsserver: Django WFS application on port8000;db: PostGIS cache on port5432;geoserver: cascaded WFS/WMS and styled layer group on port8080;nginx: MapLibre building viewer on port80.
Requirements: Docker Engine with Docker Compose and Internet access for image and Overture data downloads.
git clone https://github.com/overturemaps-ar-community/overturemaps-wfsserver.git
cd overturemaps-wfsserver
docker compose up -d --build
docker compose ps- MapLibre demo: http://localhost/
- Direct WFS capabilities: http://localhost:8000/wfs/overturemaps/?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities
- Django administration: http://localhost:8000/admin/
- GeoServer administration: http://localhost:8080/geoserver/web/
- GeoServer WFS capabilities: http://localhost:8080/geoserver/ows?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities
The bundled GeoServer data directory contains the overturemaps workspace and the
new-york layer group. The local GeoServer credentials are admin / geoserver.
Do not reuse them or expose this environment publicly.
Create a Django administrator only when local inspection requires one:
docker compose exec overturemapsserver python manage.py createsuperuserStop the environment with:
docker compose downAdd -v only when you intentionally want to remove the PostGIS volume and its
cached data.
Open qgis/sample-project.qgs. The project contains
connections to:
- the direct Django WFS at
http://localhost:8000/wfs/overturemaps/; - the cascaded GeoServer service at
http://localhost:8080/geoserver/ows; - the styled GeoServer layer alongside an OpenStreetMap WMS background.
Because data is loaded by BBOX, start with a small visible extent. The first request for an area downloads and processes features; subsequent contained requests can use the PostGIS cache.
The container build installs the Python/GDAL dependencies and applies the WFS 2.0
compatibility file from overturemaps_wfsserver/workarounds/wfs20.py. Database
migrations run automatically when the application container starts.
After changing models, migrations can be created and applied with:
docker compose exec overturemapsserver python manage.py makemigrations
docker compose exec overturemapsserver python manage.py migrateThis experiment is part of Overture Maps Argentina Community. Related initiatives include:
- JOSM Overture Maps, for discovering and comparing Overture reference data inside JOSM;
- JOSM GeoParquet, the reusable GeoParquet reader and reference-layer plugin used by the JOSM integration;
- the community portal.