Skip to content

refactor(examples): drop the custom-projection child bounds inset - #744

Merged
kylebarron merged 1 commit into
mainfrom
kyle/remove-child-bounds-inset
Oct 21, 2026
Merged

kylebarron merged 1 commit into
mainfrom
kyle/remove-child-bounds-inset

Conversation

@kylebarron

@kylebarron kylebarron commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Cleaning up code post #689


Note

This PR was written by Claude (Claude Code), not by @kylebarron.

The custom-projection example's traversal shrank each parent tile's bounds by CHILD_BOUNDS_INSET (1e-9 of the tile's size) before asking the next level for its children. It needed that because crsBoundsToTileRange also returned tiles that only touch the bounds. Since #689, crsBoundsToTileRange leaves those tiles out itself, so the inset no longer changes anything.

Checked:

  • Child ranges: I compared every parent tile of COG pyramids 8192, 10980, 10001 and 40001 px wide, with 256 and 512 px tiles, north-up and rotated 7°. Removing the inset changes 0 of 24,898 child ranges. On main before fix(deck.gl-raster): Select each tile once in raster tile traversal #689 it changed 1,181, so the inset did real work until then.
  • Rendering: in Chrome, the example's default view and ?projection=antarctic&raster=nasa-antarctic&center=0,-75&zoom=4 give byte-identical screenshots with and without the inset.
  • Typecheck and lint: pnpm --filter deck.gl-custom-projection-example typecheck and biome check pass.

Ref #689

🤖 Written by Claude Code

crsBoundsToTileRange leaves out tiles that only touch the bounds since #689, so shrinking the parent's bounds first no longer changes any child range.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kylebarron
kylebarron merged commit ac0ad7c into main Oct 21, 2026
3 checks passed
@kylebarron
kylebarron deleted the kyle/remove-child-bounds-inset branch October 21, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant