Class: RasterFunction

Description

Class added v2.0.

Specifies the processing to be done to the image service.

Samples

Search for samples that use this class.  

Class hierarchy

esri.layers.RasterFunction

Constructor

Constructor Description
esri.layers.RasterFunction() Creates a new RasterFunction object.

Properties

Property Type Description
arguments Object Specify the input arguments to the raster function, e.g. clipping geometry for the ClipFunction.
functionName String The raster function name. View the Raster Functions documentation in the REST help for more details.
variableName String Variable name for the raster function.

Methods

Method Return Value Description
toJson() Object Returns an easily serializable object representation of the raster function.
Constructor Detail

esri.layers.RasterFunction()

Creates a new RasterFunction object.
Code snippets:
  var rasterFunction = new esri.layers.RasterFunction();
  rasterFunction.functionName = "Hillshade";
  
Properties Detail

<Object> arguments

The argumens for the raster function. The structure depends on the function specified.
Code snippets:
  rasterFunction.arguments = {
    "Azimuth":215.0,
    "Altitude":75.0,
    "ZFactor":0.3
  };

<String> functionName

The raster function name. View the Raster Functions documentation in the REST help for more details.
Code snippets:
 
  rasterFunction.functionName = "Hillshade";

<String> variableName

Variable name for the raster function.
Code snippets:
  rasterFunction.variableName = "DEM";

Methods Detail

toJson()

Returns an easily serializable object representation of the raster function. (As of v2.0)
Return value: Object