PolyMapper: Extracting City Maps using Polygons

Zuoyue Li, Jan Dirk Wegner, Aurélien Lucchi

PolyMapper is an end-to-end deep learning framework that extracts city maps—specifically building footprints and road networks—directly as vector polygons from aerial imagery. By bypassing traditional pixel-wise segmentation in favor of a unified CNN-RNN architecture, it produces clean, topologically correct maps that are ready for use in GIS applications without heavy post-processing.

Introduction

Creating digital maps from overhead imagery has traditionally been a complex, multi-step process. Standard pipelines involve performing semantic segmentation to label pixels, followed by hand-crafted post-processing algorithms to clean noisy raster masks and convert them into vector formats (polygons and lines) suitable for GIS applications like OpenStreetMap.

This traditional approach is prone to error accumulation and often fails to capture the sharp geometric properties of human-made structures. PolyMapper addresses this by asking: Why not predict polygons directly from the image?

The PolyMapper Architecture

PolyMapper treats map extraction as a sequence-to-sequence problem. It uses a unified architecture to handle both closed shapes (buildings) and open networks (roads).

The PolyMapper architecture uses a CNN backbone and FPN to extract features, followed by an RNN that predicts polygon vertices.

The framework consists of three main components:

  1. Feature Extraction: A CNN backbone (VGG-16) and a Feature Pyramid Network (FPN) extract high-level features. For buildings, the FPN generates bounding boxes to isolate individual instances.
  2. The RNN "Drawer": The model uses a Recurrent Neural Network (RNN) with ConvLSTM cells. Given an image patch, the RNN predicts a sequence of $(x, y)$ coordinates representing polygon vertices. It continues until an <EOS> token is predicted, closing the loop.
  3. Graph-to-Polygon Sequentialization: To handle road networks, which are graphs rather than closed loops, the authors developed a "maze-solving" algorithm based on the wall-follower rule. This transforms complex networks into a single continuous path that the RNN can trace.

Datasets and Evaluation

The model was evaluated on three major datasets:

  • crowdAI: A benchmark for building footprint extraction with ~340,000 images.
  • RoadTracer: A dataset covering 40 cities for road network extraction.
  • PolyMapper Dataset: A new large-scale dataset curated by the authors using Google Maps orthophotos and OpenStreetMap labels for Boston, Chicago, and Sunnyvale, featuring over 3 million building annotations.

Key Results and Insights

PolyMapper demonstrates that predicting vertices directly allows the model to learn geometric priors, resulting in cleaner outputs with straight edges and sharp corners.

PolyMapper extracts clean, topologically correct building footprints and road networks directly as vectors.
  • Building Extraction: On the crowdAI dataset, PolyMapper achieved an Average Precision (AP) of 55.7, significantly outperforming established models like Mask R-CNN (41.9).
  • Road Extraction: The model achieved connectivity results on par with specialized tools like RoadTracer but with much higher topological simplicity, using ~87% fewer vertices and edges.
  • Efficiency: Inference is fast, averaging 0.38s for buildings and 0.29s for roads per image patch on a single GPU.

Limitations and Future Work

Performance slightly decreases for very large buildings due to resolution constraints in the fixed feature maps. Additionally, while the model learns geometric patterns, it lacks explicit architectural constraints (like perfect orthogonality). Future research may focus on integrating these "hard" rules into the loss function and extending the approach to other features like railways or water bodies.

Summary updated

BibTeX
@inproceedings{li2018polymapper,
  author = {Zuoyue Li and Jan Dirk Wegner and Aurélien Lucchi},
  title = {{PolyMapper: Extracting City Maps using Polygons}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2018},
}
Figure