FA-69942 / Map projection transforms / Member archive
Bing-style quadkey encoding of a tile: digit significance order · case 02
Quadkeys of neighbouring tiles no longer share their parent prefix.
Case contract
Input [z, col, row] with xyz rows. For zoom 0 return the empty string. If col or row is outside [0, 2**z - 1] return None. Otherwise emit z digits from the most significant bit down: digit = (1 if col bit set) + (2 if row bit set).
Why this case matters
Quadkeys are used as cache keys and spatial index prefixes; a wrong digit order breaks prefix containment.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| control #4 | "312" | "213" | 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 ↗