Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I have built this sample output
https://codesandbox.io/s/cog-no-data-interpolate-hhytfw?file=/main.js
I have a COG tiff with no data values, and I have applied it setting
nodata: NaN
.
Then I have applied a color map, but when I applied it, the no data pixels become colored.
How to apply this kind of palette and manage properly the no data pixels?
Thank you
–
Specifying a
nodata
value adds an extra band to the output which can be used as alpha in the style, or when as in you case there is also an interpolation it might be easier to test for it being 0:
https://codesandbox.io/s/cog-no-data-interpolate-forked-xu6zjg
Thanks for contributing an answer to Stack Overflow!
-
Please be sure to
answer the question
. Provide details and share your research!
But
avoid
…
-
Asking for help, clarification, or responding to other answers.
-
Making statements based on opinion; back them up with references or personal experience.
To learn more, see our
tips on writing great answers
.