|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.map.RasterFunction
public class 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();
Constructor Summary | |
---|---|
RasterFunction()
Instantiates an object of RasterFunction. |
|
RasterFunction(RasterFunction params)
Copies the properties from the given RasterFunction to the current instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RasterFunction()
public RasterFunction(RasterFunction params)
params
- the RasterFunction to copy from.Method Detail |
---|
public String getFunctionName()
public void setFunctionName(String functionName)
functionName
- The functionName to set.public String getArguments()
public void setArguments(String arguments)
arguments
- The arguments to set, which is a Json string representing the argument object.public Map<String,Object> getArgumentsAsMap()
public void setArgumentsAsMap(Map<String,Object> mapArguments)
arguments
- The arguments to set, which is a Json string representing the argument object.public String getVariableName()
public void setVariableName(String variableName)
variableName
- The variableName to set.public String toJson() throws org.codehaus.jackson.JsonGenerationException, IOException
org.codehaus.jackson.JsonGenerationException
IOException
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |