Raster UniqueValue Renderer

Defines the color of each raster cell based on an attribute. This is done by using unique colors to represent cells with equal attribute values.

Referenced by: Raster Renderers

Properties

Property Details
authoringInfo An object containing metadata about the authoring process for creating a renderer object. This allows the authoring clients to save specific overridable settings so that next time it is accessed via the UI, their selections are remembered. Non-authoring clients can ignore it.
colorUniqueValueInfos[] Unique value infos.
defaultColor The defaultColor on the renderer that get assigned to features with no value or features that do not fall within the configured data.
defaultLabel Default label for the default symbol used to draw unspecified values.
field The name of the field that is used for the renderer.
legendOptions A legend containing one title, which is a string describing the renderer in the legend.
type Specifies the type of renderer used.
Valid value of this property rasterUniqueValueRenderer

rasterUniqueValueRenderer Example

{
  "type": "rasterUniqueValueRenderer",
  "field": "ClassName",
  "colorUniqueValueInfos": [
    {
      "values": [
        "Open Water"
      ],
      "label": "Open Water",
      "description": "Open Water",
      "color": [
        71,
        107,
        161,
        255
      ]
    },
    {
      "values": [
        "Perennial Snow/Ice"
      ],
      "label": "Perennial Snow/Ice",
      "description": "Perennial Snow/Ice",
      "color": [
        209,
        222,
        250,
        255
      ]
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close