Skip to content

How to pass custom colormaps with float values? #496

Discussion options

You must be logged in to vote

@neelduttahere Discrete colormap assign RGBA color to an integer while you are trying to assign it to a float value. What you want to use is interval colormap https://cogeotiff.github.io/rio-tiler/colormap/#intervals-colormaps
https://github.com/developmentseed/titiler/blob/master/src/titiler/core/tests/test_factories.py#L136-L148

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@neelduttahere
Comment options

@vincentsarago
Comment options

@neelduttahere
Comment options

Answer selected by neelduttahere
Comment options

You must be logged in to vote
3 replies
@vincentsarago
Comment options

@vincentsarago
Comment options

@mrgeorge
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants