java.lang.Object | |
↳ | com.esri.core.map.RasterFunction |
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();
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<String, Object> |
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<String, Object> 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
|
Instantiates an object of RasterFunction.
Copies the properties from the given RasterFunction to the current instance.
params | the RasterFunction to copy from. |
---|
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.
Gets the input arguments to the raster function. For example, clipping geometry for the ClipFunction. T
Gets the functionName of the RasterFunction.
Gets the variableName of the RasterFunction.
Sets the input arguments to the raster function. For example, clipping geometry for the ClipFunction.
arguments | The arguments to set, which is a Json string representing the argument object. |
---|
Sets the input arguments to the raster function. For example, clipping geometry for the ClipFunction.
Sets the functionName of the RasterFunction.
functionName | The functionName to set. |
---|
Sets the variableName of the RasterFunction.
variableName | The variableName to set. |
---|
Converts the instance to a Json string.
IOException | |
---|---|
JsonGenerationException |