Endpoint (read-only) for listing predefined colormaps.

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

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

{
    "url": "https://demo.lizard.net/api/v4/colormaps/DiscChange7/?format=api",
    "name": "DiscChange7",
    "description": "DiscreteColorMap",
    "definition": {
        "data": [
            [
                0,
                [
                    255,
                    255,
                    255,
                    0
                ]
            ],
            [
                1,
                [
                    215,
                    48,
                    39,
                    255
                ]
            ],
            [
                2,
                [
                    252,
                    141,
                    89,
                    255
                ]
            ],
            [
                3,
                [
                    254,
                    224,
                    139,
                    255
                ]
            ],
            [
                4,
                [
                    255,
                    255,
                    191,
                    255
                ]
            ],
            [
                5,
                [
                    217,
                    239,
                    139,
                    255
                ]
            ],
            [
                6,
                [
                    145,
                    207,
                    96,
                    255
                ]
            ],
            [
                7,
                [
                    26,
                    152,
                    80,
                    255
                ]
            ]
        ],
        "type": "DiscreteColormap",
        "labels": {
            "en_GB": [
                [
                    0,
                    "Unclassified"
                ],
                [
                    1,
                    "Strong decrease"
                ],
                [
                    2,
                    "Moderate decrease"
                ],
                [
                    3,
                    "Slight decrease"
                ],
                [
                    4,
                    "Insignificant"
                ],
                [
                    5,
                    "Slight increase"
                ],
                [
                    6,
                    "Moderate increase"
                ],
                [
                    7,
                    "Strong increase"
                ]
            ]
        },
        "invalid": [
            255,
            255,
            255,
            0
        ]
    }
}