RenderingRule

A class that defines how an image service should be rendered to generate the requested image.

Property

Type

Description

Name

string

The rendering rule name. This is used to address a predefined rendering rule on the service for use case (3) when both the raster function and renderer are not specified.

Description

string

The rendering rule description.

Function

RasterFunction

The raster function. The raster function together with its arguments will be applied to the target service. The target image service will be assigned to the named argument of the function's argument list, and the argument list is then bound to the function.

Arguments

RasterFunctionArguments

The raster function arguments. One of the named arguments will be set using the target service.

VariableName

string

The variable name in the list of named function arguments to which the target image service should be assigned.

Renderer

RasterRenderer

The raster renderer. The raster renderer will be used to render the target service, after the function is applied, to generate a requested image.

Remarks

A rendering rule consists of:

  1. a raster function
  2. a raster renderer
  3. a name and description of a rendering rule that is defined on the image service

The raster function will be applied first to the image service, and followed by the raster renderer. The result will then be converted to requested format, e.g. jpeg, png, bmp, etc. If the function and renderer are both missing, the name is assumed to be a rendering rule available on the service. If there is no rendering rule, and the image service still needs to be rendered to generate the requested image, a default renderer will be applied. A proper default renderer is created using the same rule as when a raster dataset of the same properties, e.g. number of band, pixel type, etc., is added to ArcMap.

10/23/2013