FRAMES | NO FRAMES Description | Parameters | Examples | Response
Colormap
URL http://<imageservice-url>/colormap
Parent Resource Image Service
Required Capability Image

Description

This resource is supported from 10.1 onwards.

The colormap resource returns RGB color representation of pixel values. This resource is supported if hasColormap property of the service is true.

Resource Hierarchy

Colormap

Parameters

Parameter Details
f Description: The response format. The default response format is html.

Values: html | json

Example Usage

Example 1: Return attribute table for a land cover image service.

http://myserver.arcgisonline.com:port/arcgis/rest/services/LandCover/ImageServer/colormap

JSON Response Syntax

{"Colormap" : [
      [<value1>, <red1>, <green1>, <blue1>], //[int, int, int, int]
      [<value2>, <red2>, <green2>, <blue2>]
    ]
}

JSON Response Example

{
 "colormap": [
  [
   11,
   102,
   140,
   190
  ],
  [
   12,
   255,
   255,
   255
  ]
}