Hello,
what is the best way to embed colormaps into STAC items so single-band COG files don’t just render in greyscale when viewing them in the STAC Browser? Thank you.
Hi @dr226 ,
Thank you for this post. Good question, this is coming up more and more often with single-band COGs.
Note that it’s not fully clear which of these mechanisms STAC Browser / ol-stac currently acts on for colormap rendering specifically. We’ve opened a question in the STAC Browser repository to get guidance from the maintainers. I will update this thread once we have an answer.
Reply from the GitHub issue:
For categorical information, add the classification extension (classification:classes) with the corresponding color property. That should make it automatically render colors in v5.
We don’t have support for non-categorical data yet, but there are currently discussions going on.