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

A 'Clamped' option for color-ramp definition with min-render/max-render boundaries #220

Closed
jfbourgon opened this issue Feb 25, 2020 · 0 comments · Fixed by #245
Closed
Assignees

Comments

@jfbourgon
Copy link

min-render and max-render properties allow service administrators to define rendering boundaries for color-ramp definition. By default, values outside those boundaries are rendered as transparent pixels. For instance with the following configuration, any NDVI values above 0.5 or below -0.5 will be rendered as transparent.

type = "colorrampconf"
colors = ${color-ramps.ndvi}
min-render = -0.5
max-render = 0.5

It it might be interesting to offer to clamp values outside those ranges to color-ramp lowest/highest colors.

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.

4 participants