2026-09-01 –, Ran1
Testing a CityGML-tileset conversion pipeline using topologies does not work: tile writers can add or remove vertices and even change geometry types. We show how statistical + raster-based testing in Re:Earth flow catches bugs in its engine development.
Background
Re:Earth Flow is an open-source geospatial workflow engine designed to replace proprietary tools like FME. One of its use cases is converting Japan's PLATEAU CityGML datasets into various tile formats including Cesium 3D Tiles and Mapbox Vector Tiles.
Problem
End-to-end testing is desired to ensure the correctness of final outputs after all post-processing operations. However, classical geometry-based test cannot work when topology changes. For example, MVT writers can crop geometries or potentially change geometry types, causing false-positives in classical geometry-based test.
Solution
We started from implementing classical geometrical comparison algorithms such as symmetric difference for polygons and Hausdorff distances. However, classical geometry-based tests cannot survive topology changes. For example, MVT writers can crop geometries or change geometry types entirely, causing false positives in any structure-based test.
Implementation
MVT tiles are converted to grayscale PNG using a geometry decoder and an antialiased rasterizer. Canvas size and error threshold can be adjusted to control tolerance: sub-pixel geometric differences are naturally absorbed by the canvas resolution, and pixel differences below 0.5 are ignored to filter out antialiasing noise. The testing framework separates conversion and comparison into two stages: the first produces human-inspectable intermediates, and the second compares them against truth files. When a test breaks, you can open the PNG and see exactly what changed.
Conclusion
Rasterization is the robust approach for visualization-focused tests. As a next step, we plan to introduce a rasterization pipeline for 3D tiles, possibly with LLVMpipe for headless rendering.
Re:Earth Flow
I make my conference contribution available under the CC BY 4.0 license. The conference contribution comprises the abstract, the text contribution for the conference proceedings, the presentation materials as well as the video recording and live transmission of the presentation:Qiu is a software engineer at Eukarya Inc. He holds a PhD in Computer Science with a background in computer graphics. He has been contributing to Re:Earth Flow engine and workflow development since joining Eukarya in 2025.