Skip to content

feat: antimeridian support - #673

Open
willjnz wants to merge 21 commits into
developmentseed:kyle/antimeridian-crossingfrom
willjnz:willjnz/antimeridian-crossing-fixes
Open

willjnz wants to merge 21 commits into
developmentseed:kyle/antimeridian-crossingfrom
willjnz:willjnz/antimeridian-crossing-fixes

Conversation

@willjnz

@willjnz willjnz commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Expanding upon #576. Fixes #171. This PR doesn't stick to the vertical cut limitation. Inspired by #269.

The problem looked like this (visualising 1 antimeridian-crossing, and 1 non-crossing COG in EPGS:3832): bad am before

Test case Screenshot
EPSG:4326 (geographic) Screenshot 2026-10-01 at 8 55 34 pm
EPSG:4326 (rotated) Screenshot 2026-10-01 at 8 54 53 pm
360° wide (not AM-crossing). Important test because common heuristics will falsely flag very wide images as being AM-crossing, when they don't. Screenshot 2026-10-01 at 8 54 44 pm
EPSG:3832 (projected) Screenshot 2026-10-01 at 8 55 21 pm
UTM Zone 60 (curved) Screenshot 2026-10-01 at 8 55 05 pm

Test data: https://github.com/willjnz/geotiff-test-data/tree/antimeridian-testing

MosaicLayer support this (tested for 3832 only):
Screenshot 2026-10-01 at 9 13 17 pm

willjnz and others added 14 commits September 29, 2026 09:44
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…lify render-gray; fix stale-index crash in MosaicTileset2D
…r ramp

Drop WhiteIsZero (color inversion, not needed for this example) and
the texture-format-inference indirection (hardcode the known r16unorm
format). Swap in BlackIsZero, which still does the required single-band
-> RGB broadcast so the image doesn't render red-tinted, but leaves
values un-inverted: dark = low, bright = high.
Comment thread packages/deck.gl-raster/src/raster-tileset/raster-tileset-2d.ts Outdated
Comment thread packages/deck.gl-raster/src/raster-tileset/antimeridian-cut.ts Outdated
@willjnz
willjnz marked this pull request as ready for review October 1, 2026 06:11
@willjnz willjnz changed the title Willjnz/antimeridian crossing test/fixes feat: antimeridian support Oct 1, 2026
@github-actions github-actions Bot added the feat label Oct 1, 2026
@willjnz
willjnz marked this pull request as draft October 1, 2026 06:44
@willjnz
willjnz marked this pull request as ready for review October 1, 2026 08:19
@willjnz
willjnz marked this pull request as draft October 1, 2026 08:29
@willjnz
willjnz marked this pull request as ready for review October 1, 2026 12:03

This branch has not been deployed

No deployments
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