Replies: 1 comment 2 replies
-
|
because in the first one you're setting |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am serving a cog file. with titiler.
When I call /preview with a color map:
http://localhost:8001/cog/preview.png?url=http://localhost/cog/sgnp_fcd_3857_cog.tif&colormap=[[[0,15],[215,25,28,255]],[[15,20],[254,196,123,255]],[[20,40],[237,247,174,255]],[[40,60],[156,212,103,255]],[[60,80],[91,181,84,255]],[[80,100],[25,150,65,255]]]&max_size=1024Image fetched is :
I apply same colormap in server:
I fetch image in my react app as:
data: 'http://localhost:8001/cog/tiles/WebMercatorQuad/{z}/{x}/{y}.png?url=http://localhost/cog/sgnp_fcd_3857_cog.tif&rescale=0,100&colormap_name=fcd_intervals',But image is rendered pretty different:
What can be the reason for this difference when same colormap is applied on same image?
Beta Was this translation helpful? Give feedback.
All reactions