Skip to content
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

Add interpolation to color configuration for WMS/WMTS #161

Closed
echeipesh opened this issue Oct 10, 2019 · 1 comment · Fixed by #224
Closed

Add interpolation to color configuration for WMS/WMTS #161

echeipesh opened this issue Oct 10, 2019 · 1 comment · Fixed by #224

Comments

@echeipesh
Copy link
Collaborator

ColorMap associates a range of breaks (raster values) with a color.

Currently rendering a raster results snapping each pixel value to the closest break value and assign it corresponding color value. As such the output raster may only have colors explicitly specified in the color ramp. This is how Discrete color rendering works in QGIS.

This issue is to add a rendering option that will interpolate option to rendering that takes place in WMS and WMTS endpoints. When enabled the assigned color is going to be interpolated (linearly) in the color space based on distance of the pixel value between two closest break values in the ColorMap.

@moradology
Copy link
Collaborator

The RgbLerp function here interpolates just as described. Much of the rendering developed for RF could be used as a starting point for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants