FAILURE MAP
← Case archive

FA-69979 / Map projection transforms / Member archive

Web mercator ground resolution and scale denominator: zoom exponent · case 04

Every zoom level reports half the correct resolution.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

Input [lat, z, tile_size, dpi]. Ground resolution in metres per pixel is 2*pi*6378137*cos(lat)/(tile_size*2**z) with the equatorial circumference computed exactly. The map scale denominator is resolution*dpi/0.0254. Return [resolution rounded to 6 decimals, scale denominator rounded to the nearest integer] computed from the unrounded resolution.

Why this case matters

Scale bars, level-of-detail choice and print exports depend on these values.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
control #3[18.672958, 220547][37.345917, 441094]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 ↗