mapbox / landsat-tiler

A serverless Landsat tiles server using AWS Lambda
BSD 3-Clause "New" or "Revised" License
143 stars 24 forks source link

Pixel smoothing - how to disable? #15

Open gjones84 opened 5 years ago

gjones84 commented 5 years ago

Firstly thanks for putting this together - I'm actually using it in OpenLayers rather than Mapbox and having great success. The only stumbling block I have now though is that I can't seem to prevent the Landsat pixels from being "smoothed" - I'm doing vegetation analysis and need the raw Landsat pixel values, but when they show up on the map they are being dithered/anti-aliased within the pixels, rather than appearing as a single colour for each pixel. See image below: pixelsmoothing

I've tried setting imageSmoothingEnabled = false as suggested by a post on Stack Overflow, as this seems to work for others who are using static PNG images, but doesn't work for me, I wonder if landsat-tiler is actually supplying "pre-smoothed" data. Is this the case, and would it be possible to optionally disable it?