FAILURE MAP
← Case archive

FA-69917 / Map projection transforms / Member archive

Geographic bounds of a map tile: tms row flip · case 02

TMS tiles report bounds one tile further south than their neighbours report.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Input [z, col, row, scheme] where scheme is "xyz" (row 0 at north) or "tms" (row 0 at south). Return [west, south, east, north] in degrees rounded to 6 decimals, using lon = col/n*360-180 and lat = degrees(atan(sinh(pi*(1-2*r/n)))) for an xyz row edge r, n = 2**z. A tms row t is the xyz row n-1-t.

Why this case matters

Tile footprints drive cache invalidation, label placement and raster reprojection; wrong edges misalign tiles.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
control #4[-22.5, 0.0, 0.0, 21.943046][-22.5, 21.943046, 0.0, 40.979898]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 ↗