FAILURE MAP
← Case archive

FA-70480 / GIS polygon topology / Member archive

TopoJSON arc stitching into rings: delta accumulation · case 05

Decoded arcs collapse around the origin.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Input [arcs, transform, ring]. Each arc is a list of quantized delta positions (the first is absolute, later ones add to the running position within that arc). transform [sx, sy, tx, ty] maps q to q*s + t per axis; a null transform is the identity [1, 1, 0, 0]. A ring lists arc indexes; a negative index i means arc ~i (bitwise complement) traversed backwards. Arcs after the first contribute all but their first position, which duplicates the previous arc end. Return the stitched list of [x, y].

Why this case matters

Shared-boundary topology formats store each border once; decoding errors break rings, reverse borders or duplicate junction vertices.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
control #0[[100.0, 200.0], [105.0, 200.0], [100.0, 202.5], [95.0, 200.0], [100.0, 197.5]][[100.0, 200.0], [105.0, 200.0], [105.0, 202.5], [100.0, 202.5], [100.0, 200.0]]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗