Algorithm contours returns 500: "Source data must be 1 band" #822
-
Hello,
If I use the algorithm "contours" with these algorithm parameters: {"increment":10,"thickness":2,"minz":-10,"maxz":300}, the url is
and I got this error: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
it's because you're trying to apply a colormap on top of the contour, which is not possible. The titiler/src/titiler/core/titiler/core/algorithm/dem.py Lines 86 to 90 in 77816bf We could totally make this colormap an algorithm option |
Beta Was this translation helpful? Give feedback.
it's because you're trying to apply a colormap on top of the contour, which is not possible.
The
contour
algorithm will create a RGB with theTerrain
colormap already appliedtitiler/src/titiler/core/titiler/core/algorithm/dem.py
Lines 86 to 90 in 77816bf
We could totally make this colormap an algorithm option