Skip to content

fix: Support TileLayer refinement strategies#354

Merged
kylebarron merged 10 commits intomainfrom
kyle/fix-refinement-strategy
Mar 19, 2026
Merged

fix: Support TileLayer refinement strategies#354
kylebarron merged 10 commits intomainfrom
kyle/fix-refinement-strategy

Conversation

@kylebarron
Copy link
Member

@kylebarron kylebarron commented Mar 18, 2026

Change list

  • Define TileMetadata type in raster-tileset-2d for object returned by Tileset.getTileMetadata
  • Return bbox object from getTileMetadata, which is the WGS84 bounding box (edge densified) of the current tile.
  • Fix decimation calculation to consider both image size and cell size. For example, sentinel 2 has a different image size for its overviews (512x512) as for the full-resolution data (1024x1024). We need to handle this offset correctly.
  • Add tests
Screen.Recording.2026-03-18.at.7.31.21.PM.mov

Closes #190, closes #192

@github-actions github-actions bot added the fix label Mar 18, 2026
@kylebarron kylebarron marked this pull request as ready for review March 19, 2026 18:11
@kylebarron kylebarron changed the title fix: Refinement strategy fix: Support TileLayer refinement strategies Mar 19, 2026
@kylebarron kylebarron enabled auto-merge (squash) March 19, 2026 18:11
@kylebarron kylebarron merged commit ceec0ac into main Mar 19, 2026
5 checks passed
@kylebarron kylebarron deleted the kyle/fix-refinement-strategy branch March 19, 2026 18:11
@ds-release-bot ds-release-bot bot mentioned this pull request Mar 19, 2026
@edeetee
Copy link

edeetee commented Mar 20, 2026

Thank you legend!

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.

Implement custom Refinement Strategy in COGLayer

2 participants