-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nearest-neighbor image resampling for ImageryLayer #5846
Comments
Hi there @forman. Please ask your question over at the Cesium Forum. Cesium's a big project, so we use GitHub for feature requests and bug tracking exclusively. Thanks! |
@lilleyse confirmed that there's not a way to do this is Cesium currently. The imagery layer has the linear interpolation hard-coded, so we'll leave this open. |
I think we had a thread about this at one point on the forum and it's come up before. @bagnell isn't modifying this just a one line change? Might be a good workaround or easy enough for someone to open a PR to handle. |
@mramato we're happy to do so |
You can add Samplers to the textures here: Set the minification and magnification filters to |
@bagnell thanks, I hope to find some time next week for a PR. |
Closing this as the feature is already included since v1.39, 2017-11-01. |
We 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:
The text was updated successfully, but these errors were encountered: