Skip to content

Clamp affected tiles calculation to sane latitudes#922

Merged
systemed merged 2 commits into
masterfrom
clamp_tiles
Jul 2, 2026
Merged

Clamp affected tiles calculation to sane latitudes#922
systemed merged 2 commits into
masterfrom
clamp_tiles

Conversation

@systemed

@systemed systemed commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Geometries outside web Mercator's standard boundaries could cause an integer underflow when calculating tile bounds, resulting in an implausibly large set of tiles and an out-of-memory error.

This PR clamps the Y coordinates to those which produce acceptable projected web Mercator. Fixes #921.

@systemed systemed merged commit d3a2ff0 into master Jul 2, 2026
11 of 12 checks passed
@systemed systemed deleted the clamp_tiles branch July 2, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

crash with planet.osm.pbf since June 15th due to an unidentified OSM element

1 participant