Skip to content
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

Add custom colormap for soil texture collections #441

Open
2 tasks
anayeaye opened this issue Oct 14, 2024 · 0 comments
Open
2 tasks

Add custom colormap for soil texture collections #441

anayeaye opened this issue Oct 14, 2024 · 0 comments
Assignees

Comments

@anayeaye
Copy link
Collaborator

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

"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

AC

  • Check for a published/standardized ISRIC soil texture colormap before generating the custom colormap defined above https://www.isric.org/search/node?keys=texture
  • Custom soil texture colormap supported by titiler and new url accessible behind MCP WAF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant