{
    "title": "renderingRule",
    "type": "object",
    "$schema": "http://json-schema.org/draft-04/schema",
    "description": "Specifies the rendering rule for how the requested image should be rendered.",
    "properties": {
        "outputPixelType": {
            "type": "string",
            "description": "the output pixel type defines the output image's pixel type.",
            "enum": [
                "C128",
                "C64",
                "F32",
                "F64",
                "S16",
                "S32",
                "S8",
                "U1",
                "U16",
                "U2",
                "U32",
                "U4",
                "U8",
                "UNKNOWN"
            ],
            "default": "UNKNOWN"
        },
        "rasterFunction": {
            "type": "string",
            "description": "The raster function name identifies the processing or rendering to be performed. For a list of possible types, please see the [Raster Functions](http://resources.arcgis.com/en/help/arcgis-rest-api/#/Raster_Function_Objects/02r3000000rv000000/) help topic for additional information on this."
        },
        "rasterFunctionArguments": {
            "type": "object",
            "description": "The arguments for the referenced `rasterFunction`. For a description of arguments per raster function type, please see the [Raster Functions](http://resources.arcgis.com/en/help/arcgis-rest-api/#/Raster_Function_Objects/02r3000000rv000000/) help topic for additional information on this."
        },
        "variableName": {
            "type": "string",
            "description": "Variable name for the raster function."
        }
    },
    "additionalProperties": false,
    "esriDocumentation": {
        "additionalInformation": "[Raster function objects](http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r3000000rv000000) in ArcGIS REST API",
        "examples": [
            {
                "title": "renderingRule with Aspect rasterFunction",
                "code": {
                    "renderingRule": {
                        "rasterFunction": "Aspect"
                    }
                }
            },
            {
                "title": "rendering rule with ArgStatistics rasterFunction",
                "code": {
                    "renderingRule": {
                        "rasterFunction": "ArgStatistics",
                        "rasterFunctionArguments": {
                            "ArgStatisticsType": 3,
                            "MinValue": 0.15,
                            "MaxValue": 1,
                            "UndefinedClass": 100,
                            "Raster": "$$"
                        },
                        "outputPixelType": "U8",
                        "variableName": "Raster"
                    }
                }
            }
        ]
    }
}