Closed anayeaye closed 3 weeks ago
Some categorical data require complex colormap definitions that exceed the allowed URL length in MCP. We can create a custom colormap for this collection, see the instructions here.
renders
"renders": { "dashboard": { "resampling": "nearest", "nodata": 255, "colormap": { "1": "#F89E61", "2": "#BA8560", "3": "#D8D2B4", "4": "#AE734C", "5": "#9E8478", "6": "#C6A365", "7": "#B4A67D", "8": "#E1D4C4", "9": "#BEB56D", "10": "#777C7A", "11": "#A89B6F", "12": "#E9E2AF" }, "bidx": [ 1 ], "return_mask": true, "assets": [ "soil_texture_0cm_250m" ], "title": "VEDA Dashboard Render Parameters" } }
Working preview in environment without WAF https://staging.openveda.cloud/api/raster/cog/preview.png?url=s3%3A%2F%2Fveda-data-store-staging%2Fsoil%2Fsoil_texture_60cm_250m_cog_2017.tif&nodata=255&colormap=%7B%221%22%3A+%22%23F89E61%22%2C+%222%22%3A+%22%23BA8560%22%2C+%223%22%3A+%22%23D8D2B4%22%2C+%224%22%3A+%22%23AE734C%22%2C+%225%22%3A+%22%239E8478%22%2C+%226%22%3A+%22%23C6A365%22%2C+%227%22%3A+%22%23B4A67D%22%2C+%228%22%3A+%22%23E1D4C4%22%2C+%229%22%3A+%22%23BEB56D%22%2C+%2210%22%3A+%22%23777C7A%22%2C+%2211%22%3A+%22%23A89B6F%22%2C+%2212%22%3A+%22%23E9E2AF%22%7D
What
Some categorical data require complex colormap definitions that exceed the allowed URL length in MCP. We can create a custom colormap for this collection, see the instructions here.
renders
Working preview in environment without WAF https://staging.openveda.cloud/api/raster/cog/preview.png?url=s3%3A%2F%2Fveda-data-store-staging%2Fsoil%2Fsoil_texture_60cm_250m_cog_2017.tif&nodata=255&colormap=%7B%221%22%3A+%22%23F89E61%22%2C+%222%22%3A+%22%23BA8560%22%2C+%223%22%3A+%22%23D8D2B4%22%2C+%224%22%3A+%22%23AE734C%22%2C+%225%22%3A+%22%239E8478%22%2C+%226%22%3A+%22%23C6A365%22%2C+%227%22%3A+%22%23B4A67D%22%2C+%228%22%3A+%22%23E1D4C4%22%2C+%229%22%3A+%22%23BEB56D%22%2C+%2210%22%3A+%22%23777C7A%22%2C+%2211%22%3A+%22%23A89B6F%22%2C+%2212%22%3A+%22%23E9E2AF%22%7D
AC