Skip to content

About

Proof of Concept about providing an interface for accessing Overturemaps layers -directly from geoparquet files in S3- by a OGC WFS service.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Overture Maps WFS Server

Versión en español

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.

Status and scope

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 overturemaps Python 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.

Architecture

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 port 8000;
  • db: PostGIS cache on port 5432;
  • geoserver: cascaded WFS/WMS and styled layer group on port 8080;
  • nginx: MapLibre building viewer on port 80.

Quick start

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

Local endpoints

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 createsuperuser

Stop the environment with:

docker compose down

Add -v only when you intentionally want to remove the PostGIS volume and its cached data.

Using QGIS

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.

Development notes

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 migrate

Community projects

This experiment is part of Overture Maps Argentina Community. Related initiatives include:

Presentation and references

About

Proof of Concept about providing an interface for accessing Overturemaps layers -directly from geoparquet files in S3- by a OGC WFS service.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages