locationtech/geotrellis

Major artifact when upsampling with Average

Opened this issue · 1 comments

Describe the bug

The following result was obtained when upsampling a COG to higher resolution, using 'Average'. I'm aware that doing upsampling with this kind of method may not really make sense, maybe the artifacts are even the expected outcome somehow.

image

To Reproduce

I don't have a small sample yet, but the more extensive test does this:

  • start from sentinel-2 utm data as COG
  • load with GeoTiffRasterSource
  • resample to webmercator, zoom level 14 so higher than original resolution, using Average

Expected behavior

Not

Ugh sadly we need a reproducible example + the exact code used.