FAILURE MAP
← Case archive

FA-69844 / Map projection transforms / Member archive

Spherical web mercator forward projection: longitude wrap · case 04

Features east of the antimeridian or given in [180, 540) ranges land off the projected world extent.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

Input [lon, lat] in degrees. Longitude is first wrapped into the half-open range [-180, 180); latitude is clamped to +/-85.05112878. Return [x, y] metres on a sphere of radius 6378137 with y growing northward, each rounded to 3 decimals.

Why this case matters

Web map tiles, vector tile encoders and map viewers all start from this forward transform; small mistakes shift features by kilometres or mirror them across the equator.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression #9[-100187541.714, 3503549.844][-20037508.343, 3503549.844]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 ↗