-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misleading explicit_color_map documentation #306
Comments
However, despite being properly parsed, this request does not seem to render the explicit color map - all pixel values are returned as transparent. What am I missing? |
Thanks for the report. This will be fixed in #307.
Sounds like there is a misunderstanding regarding what an explicit color map means. This feature is really for categorical data, i.e., 1-to-1 mappings of raster values to colors. The keys of the given mapping relate to the values of the raster. So a query like this pretty much never makes sense:
Because the See also this tutorial on explicit color maps. |
Thanks. Does this mean that there is no way to create a dynamic threshold map in Terracotta? I know that I can create a custom map file and upload it to the server, but I wanted to offer a relative scale based on percentiles for each file (and there is over a hundred of them). |
Correct, we only support linear transformations via I suggest you rescale the rasters offline before ingestion. If that is not an option, you could use the |
Thanks a lot for your support. |
Fix explicit cmap example in apidoc (#306)
Happy to help. |
Hi,
If you follow the
explicit_color_map
documentation example as it is written, you will get the following errorThe valid example should be a proper JSON:
And if Python data types are used, they should be marked as such. Otherwise this is misleading if one is making a request not using Python.
The text was updated successfully, but these errors were encountered: