org.geotools.filter
Class RecodeFunction
Object
RecodeFunction
- All Implemented Interfaces:
- Expression, Function
public class RecodeFunction
- extends Object
- implements Function
Implementation of "Recode" as a normal function.
This implementation is compatible with the Function interface; the parameter list can be used to
set the threshold values etc...
This function expects:
- PropertyName; use "Rasterdata" to indicate this is a colour map
- Literal: data 1
- Literal: value 1
- Literal: data 2
- Literal: value 2
In reality any expression will do.
- Author:
- Johann Sorel (Geomatys)
- Module:
modules/library/render (gt-render.jar)
Field Summary |
static FunctionName |
NAME
Make the instance of FunctionName available in a consistent spot. |
Fields inherited from interface Expression |
NIL |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final FunctionName NAME
- Make the instance of FunctionName available in a consistent spot.
RecodeFunction
public RecodeFunction()
RecodeFunction
public RecodeFunction(List<Expression> parameters,
Literal fallback)
getName
public String getName()
- Specified by:
getName
in interface Function
getParameters
public List<Expression> getParameters()
- Specified by:
getParameters
in interface Function
accept
public Object accept(ExpressionVisitor visitor,
Object extraData)
- Specified by:
accept
in interface Expression
evaluate
public Object evaluate(Object object)
- Specified by:
evaluate
in interface Expression
evaluate
public <T> T evaluate(Object object,
Class<T> targetClass)
- Specified by:
evaluate
in interface Expression
getFallbackValue
public Literal getFallbackValue()
- Specified by:
getFallbackValue
in interface Function
Copyright © 1996-2009 Geotools. All Rights Reserved.