automatically apply discrete
colormap when cmap doesn't have 256 values
#321
Labels
discrete
colormap when cmap doesn't have 256 values
#321
When a user has a custom colormap which is not a 256 dict (for 0 to 256) we should automatically switch to
apply_discrete_cmap
becausemake_lut
won't work with dict which doesn't have 256 values{0: [...], 1000:[...]}
a lut would be really large, while we could useapply_discrete_cmap
directly.rio-tiler/rio_tiler/colormap.py
Line 97 in 79da537
This is to support developmentseed/titiler#153
The text was updated successfully, but these errors were encountered: