Open j08lue opened 3 months ago
TiTiler implemented a method to get the full color table (usually 255 stops), which should work fine for our purpose as well.
Btw, other projects I learned about have been loading colormaps from D3, at least those identical with TiTiler's.
The/colormaps
endpoint (docs here) does not seem to be added to the GHG Center and VEDA APIs yet.
https://ghg.center/api/raster/docs
Might need a ticket in veda-backend
.
It can be a part of upgrading titiler-pgstac to the latest version - https://github.com/NASA-IMPACT/veda-backend/issues/364.
Currently, we have to configure both the TiTiler dynamic tiling parameters for a colormap and the stops for the legend component. In principle, the stops could be generated dynamically, ideally by TiTiler, since it receives the rendering specs and we need to make sure legend and tiles agree.
I added a comment to this existing TiTiler feature request:
Acceptance criteria