-
Notifications
You must be signed in to change notification settings - Fork 173
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
User specified "custom" colormap #153
Comments
Hey @blazetopher thanks for opening the issue. I think there are 2 solutions:
Solution 2 is really complex and might not even be possible, so solution 1 might be better. That's say I'm not 💯 on solution 1 because it will lead to really long/complex URL 🤷♂️ if we add this, this is where it should happen https://github.com/developmentseed/titiler/blob/master/titiler/dependencies.py#L219-L246 |
@vincentsarago Thanks for the rapid response! I was also thinking something along the lines of Option 1. Our use case is relatively straightforward: Only 3 colors and 2 splits - no gradients. So while that case theoretically wouldn't be too bad, specifying every pixel value would get complex quickly. Also sounds like there would potentially be encoding/decoding requirements (based on the terracotta reference) to take into consideration. Thanks also for the pointer to the proper location in the codebase. I'm unsure if our current project timeline will allow for it, but if we end up trying to implement and it comes out well, I'll be sure to submit a PR so it can be folded back in! |
I think it would be fine to allow a |
Is there a way to allow the client to specify a custom colormap "dynamically"? For example, by providing a series of pixel+color pairs and dynamically generating a linear gradient colormap on the fly during rendering?
If such a capability doesn't exist, would you have any advice on how it might be best implemented?
The text was updated successfully, but these errors were encountered: