public class

RasterFunction

extends Object
implements Serializable
java.lang.Object
   ↳ com.esri.core.map.RasterFunction

Class Overview

Specifies the processing to be done to the image service. There are different kinds of Raster Functions. Here is an example of how to construct the Shaded Relief rendering rule.

Java usage:


 	String argument = " {\"Azimuth\" : 215.0,\"Altitude\" : 60.0,\"ZFactor\" : 5,\"Colormap\" : [[0, 1, 2, 3],  [2, 45, 52, 13]]}";					
	RasterFunction renderingRule = new RasterFunction();				
	renderingRule.setFunctionName("ShadedRelief");
	renderingRule.setArguments(argument);
	renderingRule.setVariableName("Raster");
	imageServiceLayer.setRenderingRule(renderingRule);
	imageServiceLayer.refresh();

Summary

Public Constructors
RasterFunction()
Instantiates an object of RasterFunction.
RasterFunction(RasterFunction params)
Copies the properties from the given RasterFunction to the current instance.
Public Methods
boolean equals(Object obj)
String getArguments()
Gets the input arguments to the raster function.
Map<StringObject> getArgumentsAsMap()
Gets the input arguments to the raster function.
String getFunctionName()
Gets the functionName of the RasterFunction.
String getVariableName()
Gets the variableName of the RasterFunction.
int hashCode()
void setArguments(String arguments)
Sets the input arguments to the raster function.
void setArgumentsAsMap(Map<StringObject> mapArguments)
Sets the input arguments to the raster function.
void setFunctionName(String functionName)
Sets the functionName of the RasterFunction.
void setVariableName(String variableName)
Sets the variableName of the RasterFunction.
String toJson()
Converts the instance to a Json string.
String toString()
Returns a string containing function name, arguments and variable name.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RasterFunction ()

Instantiates an object of RasterFunction.

public RasterFunction (RasterFunction params)

Copies the properties from the given RasterFunction to the current instance.

Parameters
params the RasterFunction to copy from.

Public Methods

public boolean equals (Object obj)

public String getArguments ()

Gets the input arguments to the raster function. For example, clipping geometry for the ClipFunction. The arguments is a Json string representing the argument object.

Returns
  • Returns the arguments as a Json string representing the argument object.

public Map<StringObject> getArgumentsAsMap ()

Gets the input arguments to the raster function. For example, clipping geometry for the ClipFunction. T

Returns
  • Returns the arguments as a Json string representing the argument object.

public String getFunctionName ()

Gets the functionName of the RasterFunction.

Returns
  • Returns the functionName.

public String getVariableName ()

Gets the variableName of the RasterFunction.

Returns
  • Returns the variableName.

public int hashCode ()

public void setArguments (String arguments)

Sets the input arguments to the raster function. For example, clipping geometry for the ClipFunction.

Parameters
arguments The arguments to set, which is a Json string representing the argument object.

public void setArgumentsAsMap (Map<StringObject> mapArguments)

Sets the input arguments to the raster function. For example, clipping geometry for the ClipFunction.

public void setFunctionName (String functionName)

Sets the functionName of the RasterFunction.

Parameters
functionName The functionName to set.

public void setVariableName (String variableName)

Sets the variableName of the RasterFunction.

Parameters
variableName The variableName to set.

public String toJson ()

Converts the instance to a Json string.

Returns
  • the Json string.
Throws
IOException
JsonGenerationException

public String toString ()

Returns a string containing function name, arguments and variable name.