Endpoint (read-only) for listing predefined colormaps.

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

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

{
    "url": "https://zuiderzeeland.lizard.net/api/v4/colormaps/CropPattern_rice_d/?format=api",
    "name": "CropPattern_rice_d",
    "description": "DiscreteColorMap",
    "definition": {
        "data": [
            [
                0,
                [
                    255,
                    255,
                    255,
                    0
                ]
            ],
            [
                1,
                [
                    62,
                    122,
                    211,
                    255
                ]
            ],
            [
                2,
                [
                    179,
                    152,
                    4,
                    255
                ]
            ],
            [
                3,
                [
                    216,
                    157,
                    132,
                    255
                ]
            ],
            [
                4,
                [
                    248,
                    208,
                    0,
                    255
                ]
            ],
            [
                5,
                [
                    171,
                    241,
                    141,
                    255
                ]
            ],
            [
                6,
                [
                    224,
                    147,
                    114,
                    255
                ]
            ],
            [
                7,
                [
                    101,
                    179,
                    93,
                    255
                ]
            ]
        ],
        "type": "DiscreteColormap",
        "labels": {
            "en_GB": [
                [
                    0,
                    "Unclassified"
                ],
                [
                    1,
                    "Boro"
                ],
                [
                    2,
                    "Aus"
                ],
                [
                    3,
                    "Boro-Aus"
                ],
                [
                    4,
                    "Aman"
                ],
                [
                    5,
                    "Boro-Aman"
                ],
                [
                    6,
                    "Aus-Aman"
                ],
                [
                    7,
                    "Boro-Aus-Aman"
                ]
            ]
        },
        "invalid": [
            255,
            255,
            255,
            0
        ]
    }
}