On scalable DCEL overlay operations

Andrés Calderón Romero, Laila Abdelhafeez, Goce Trajcevski, Amr Magdy, Vassilis J. TsotrasGeoInformatica 2025

TL;DR

This paper introduces SDCEL, the first truly scalable and distributed framework for computing Doubly Connected Edge List (DCEL) overlay operations. By leveraging Apache Spark and novel partitioning strategies, the authors enable massive spatial datasets—containing tens of millions of edges—to be processed in seconds, while also providing a robust way to turn scattered line segments (like road networks) into clean, topological polygons.

What Problem Does This Paper Address?

In spatial computing, the DCEL is the gold standard for representing planar subdivisions because it maintains explicit topological relationships between vertices, edges, and faces. However, DCELs have historically been a "small data" tool.

Existing sequential implementations (like those in the CGAL library) often crash when faced with modern, large-scale datasets like the full U.S. Census tracts. Furthermore, real-world data is rarely "clean." We often have sets of scattered lines (e.g., city blocks) that form polygons but aren't explicitly defined as such. Traditional overlay techniques struggle to "polygonize" these lines at scale and then perform operations like intersections or unions across different layers.

Methods

The authors moved the DCEL from a single-machine memory model to a distributed environment using Apache Spark. Their approach involves several key innovations:

  1. Advanced Partitioning: They compared two strategies:
  2. Quadtree (Space-oriented): Divides space into equal quadrants.
  3. Kd-tree (Data-oriented): Adapts to the actual distribution of data, ensuring a balanced number of edges per partition.
  4. The "Orphan" Problem: When you split a map into tiles (partitions), some tiles might be empty or contain a hole whose parent polygon is in a different tile. The authors developed a recursive search algorithm to correctly label these "orphan cells" and "orphan holes" by traversing the quadtree lineage.
  5. Scalable Polygonization: For raw line data, they implemented a two-phase process:
  6. Gen Phase: Local partitions extract as many closed polygons as possible.
  7. Rem Phase: An iterative process that "levels up" the tree, merging incomplete cycles from adjacent partitions until all polygons are closed.
  8. Optimizations: They introduced a "filtered-sweep" algorithm for cases where one layer is much denser than the other, avoiding unnecessary scans of the larger dataset.

Datasets

The study utilized several massive, real-world datasets to prove scalability:

  • MainUS: Complete U.S. Census Tracts for 2000 and 2010 (up to 36M+ edges).
  • GADM: Global Administrative Areas (up to 68M+ edges).
  • CCT: A subset of California Census Tracts for smaller-scale comparisons.
  • Global Road Networks: Massive line datasets for the USA, South America, Africa, Europe, and Asia (up to 563M segments) used to test the polygonization process.

Key Insights and Ideas

  • Data-Oriented > Space-Oriented: The Kd-tree partitioning significantly outperformed the Quadtree. Because it adapts to data density, it creates fewer "empty" partitions, which reduces the overhead of the "orphan cell" labeling process.
  • Topological Consistency is Hard at Scale: The most difficult part of distributed spatial computing isn't the math—it's the boundaries. Ensuring that a polygon split across four servers still "knows" it is one single face requires clever hierarchical metadata.
  • The Power of the "By Label" Shuffle: Instead of a traditional MapReduce "reduce" step (which can create a bottleneck at the master node), the authors found that re-partitioning faces by their unique label IDs allowed for a much more balanced, parallel merge.

Key Results

  • Massive Speedup: SDCEL successfully computed overlays for datasets that caused standard libraries (CGAL) to crash.
  • Linear Scalability: The system showed near-perfect "speed-up" (doubling the nodes nearly halved the time) and "scale-up" (increasing data and nodes proportionally kept execution time constant).
  • Efficiency: For the U.S. dataset (36M edges), the system could compute a full overlay in just a few hundred seconds on a 12-node cluster.
  • Polygonization: The framework turned 563 million European road segments into 25 million polygons, a feat previously impossible with sequential tools.

Limitations and Future Work

While SDCEL handles 2D planar subdivisions exceptionally well, the authors note that the current implementation assumes no overlapping or "stacked" polygons in the input (a common constraint in DCEL).

Future Work could involve:

  • Extending the framework to handle 3D models (polyhedral DCELs).
  • Integrating more complex spatial predicates beyond basic boolean operations (union/intersection).
  • Further optimizing the "Rem Phase" of polygonization to reduce the number of iterations required for extremely complex, multi-partition cycles.

Summary updated

BibTeX
@article{romero2025scalable,
  author = {Andrés Calderón Romero and Laila Abdelhafeez and Goce Trajcevski and Amr Magdy and Vassilis J. Tsotras},
  title = {{On scalable DCEL overlay operations}},
  journal = {GeoInformatica},
  year = {2025},
  doi = {10.1007/s10707-025-00539-x},
}
Figure