org.deegree.filter.expression.custom.se
Class Interpolate
java.lang.Object
org.deegree.filter.expression.custom.AbstractCustomExpression
org.deegree.filter.expression.custom.se.Interpolate
- All Implemented Interfaces:
- Expression, CustomExpression
public class Interpolate
- extends AbstractCustomExpression
Interpolate
- Version:
- $Revision: 31400 $, $Date: 2011-08-02 10:11:48 +0200 (Tue, 02 Aug 2011) $
- Author:
- Andreas Schmitz, Andrei Aiordachioaie, last edited by: $Author: aschmitz $
Interpolate
public Interpolate()
getElementName
public QName getElementName()
- Description copied from interface:
CustomExpression
- Returns the element name used for encoding this expression.
- Returns:
- the element name of the expression, never
null
parse
public Interpolate parse(XMLStreamReader in)
throws XMLStreamException
- Specified by:
parse
in class AbstractCustomExpression
- Throws:
XMLStreamException
parseSLD100
public static Interpolate parseSLD100(XMLStreamReader in)
throws XMLStreamException
- Parameters:
in
-
- Throws:
XMLStreamException
evaluate
public <T> TypedObjectNode[] evaluate(T obj,
XPathEvaluator<T> xpathEvaluator)
throws FilterEvaluationException
- Description copied from interface:
Expression
- Determines the values of the expression for the given context object.
Note that this returns an TypedObjectNode[]
, as an expression may evaluate to multiple values, e.g.
a ValueReference
that targets a multi property of a feature.
- Type Parameters:
T
- type of the context object- Parameters:
obj
- object that the expression is evaluated upon, must not be null
xpathEvaluator
- used for evaluation of XPath expressions, must not be null
- Returns:
- the values of the expression, may be empty (and even contain
null
values), but never
null
- Throws:
FilterEvaluationException
evaluateRaster
public BufferedImage evaluateRaster(AbstractRaster raster,
RasterStyling style)
- Construct an image map, as the result of the Interpolate operation
- Parameters:
raster
- input rasterstyle
- raster style, containing channel mappings (if applicable)
- Returns:
- a buffered image with the processed data
getDatas
public Double[] getDatas()
- Returns:
- the array with the data boundaries
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011. All Rights Reserved.