Skip to content

fix: Allow MultiCOGLayer sampler to be overridden from default linear - #640

Open
willjnz wants to merge 1 commit into
developmentseed:mainfrom
willjnz:sampler-multicoglayer
Open

willjnz wants to merge 1 commit into
developmentseed:mainfrom
willjnz:sampler-multicoglayer

Conversation

@willjnz

@willjnz willjnz commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Related to #215 (comment). My data is UInt16 surface reflectance with nodata=0.

Can be simply used like

new MultiCOGLayer({
  ...
  bandSampler: { minFilter: "nearest", magFilter: "nearest" },
}),
Before (Linear sampler - blurred, with artifacts) After (Nearest sampler - sharp, clean)
Before 1 After 1
Before 2 After 2

@willjnz willjnz changed the title Allow MultiCOGLayer sampler to be overridden from default linear fix: Allow MultiCOGLayer sampler to be overridden from default linear Aug 25, 2026
@github-actions github-actions Bot added the fix label Aug 25, 2026
@earlybard

Copy link
Copy Markdown
Contributor

+1, we need this for MultiCOGLayer too. We composite Int16 reflectance and discard nodata with an exact-match filter; with linear sampling every scene edge and nodata hole gets a one-texel rim where the sentinel blends into real data and slips past the filter. Nearest fixes it. It also means r32float bands (#650) don't need OES_texture_float_linear.

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.

2 participants