Endpoint (read-only) for listing predefined colormaps.

A colormap is used when rendering rasters in the WMS endpoint.

GET /api/v4/colormaps/AnomaliesOrdinal/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "https://demo.lizard.net/api/v4/colormaps/AnomaliesOrdinal/?format=api",
    "name": "AnomaliesOrdinal",
    "description": "Discretecolormap",
    "definition": {
        "data": [
            [
                1,
                [
                    172,
                    95,
                    23,
                    125
                ]
            ],
            [
                2,
                [
                    255,
                    255,
                    191,
                    125
                ]
            ],
            [
                3,
                [
                    26,
                    150,
                    65,
                    125
                ]
            ]
        ],
        "type": "DiscreteColormap",
        "labels": {
            "en_GB": [
                [
                    1,
                    "Below normal"
                ],
                [
                    2,
                    "Near normal"
                ],
                [
                    3,
                    "Above normal"
                ]
            ]
        },
        "invalid": [
            255,
            255,
            255,
            0
        ]
    }
}