Nearest-neighbor image resampling for ImageryLayer
See original GitHub issueWe develop an application that uses Cesium to display climate data imagery. Many users (usually Earth scientists) would like to see the original grid cell extends in the images. Cesium seems to use (linearily) interpolated textures by default. Is there any possibility to set an ImageryLayer to a nearest-neighbor image resampling so actual grid cells would be displayed as squares? Even a global Cesium (or WebGL) setting would help.
To get an idea, here is a screenshot of the application showing monthly cloud averages in 0.5 degree grid cells. The interpolation applied makes it impossible to distinguish the original grid cells:

Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Solved: Resampling an imagery layer with locked rasters
Solved: I have a time-enabled MODIS NPP imagery layer for CONUS hosted ... and resampling work fine with ArcGIS Pro with Image Server...
Read more >Resampling and Reducing Resolution | Google Earth Engine
Display the Landsat image using the default nearest neighbor resampling. // when reprojecting to Mercator for the Code Editor map.
Read more >Imagery appearance—ArcGIS Pro | Documentation
Nearest Neighbor more closely retains the original pixel values, whereas the other resampling techniques produce a smoother image by interpolating values.
Read more >How does Nearest Neighbor Image Resampling work in ...
Following R.K. suggestion, I have made 3 diferent rasters to test the NN resampling method in arcGIS and when passing from InRas resolution...
Read more >RDW_ForestEcology/FIA_AboveGroundForestCarbon ...
Through application of a nearest-neighbor imputation approach, mapped estimates of forest carbon density were developed for the contiguous United States ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@bagnell thanks, I hope to find some time next week for a PR.
Yeeha:
You can add Samplers to the textures here:
https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/ImageryLayer.js#L743
Set the minification and magnification filters to
NEAREST. If the textures need reprojection, you can modify the samplers here:https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/ImageryLayer.js#L796