deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.filter.function.se
Class Interpolate

java.lang.Object
  extended by org.deegree.filter.expression.Function
      extended by org.deegree.filter.function.se.Interpolate
All Implemented Interfaces:
Expression

public class Interpolate
extends Function

Interpolate

Version:
$Revision: 22318 $, $Date: 2010-02-01 16:17:10 +0100 (Mo, 01 Feb 2010) $
Author:
Andreas Schmitz, Andrei Aiordachioaie, last edited by: $Author: aschmitz $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deegree.filter.Expression
Expression.Type
 
Constructor Summary
Interpolate()
           
 
Method Summary
(package private)  void buildLookupArrays()
          Create the sorted lookup arrays from the linked lists, so that we can perform binary search.
 Object[] evaluate(MatchableObject f)
          Determines the values of the expression for the given MatchableObject.
 BufferedImage evaluateRaster(AbstractRaster raster, RasterStyling style)
          Construct an image map, as the result of the Interpolate operation
 double lookup2(double value)
          Looks up a value in the current data values.
 Color lookup2Color(double value)
          Performs interpolation on a value, and returns a color built from the interpolated value.
 void parse(XMLStreamReader in)
           
 void parseSLD100(XMLStreamReader in)
           
 String toString()
           
 
Methods inherited from class org.deegree.filter.expression.Function
getName, getParameters, getParams, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Interpolate

public Interpolate()
Method Detail

evaluate

public Object[] evaluate(MatchableObject f)
Description copied from interface: Expression
Determines the values of the expression for the given MatchableObject.

Note that this returns an Object[], as an expression may evaluate to multiple values, e.g. a PropertyName that targets a multi property of a feature.

Specified by:
evaluate in interface Expression
Overrides:
evaluate in class Function
Parameters:
f - object that the expression is evaluated upon
Returns:
the values of the expression, may be empty (and even contain null values), but never null

parse

public void parse(XMLStreamReader in)
           throws XMLStreamException
Parameters:
in -
Throws:
XMLStreamException

parseSLD100

public void parseSLD100(XMLStreamReader in)
                 throws XMLStreamException
Parameters:
in -
Throws:
XMLStreamException

buildLookupArrays

void buildLookupArrays()
Create the sorted lookup arrays from the linked lists, so that we can perform binary search.


evaluateRaster

public BufferedImage evaluateRaster(AbstractRaster raster,
                                    RasterStyling style)
Construct an image map, as the result of the Interpolate operation

Parameters:
raster - input raster
style - raster style, containing channel mappings (if applicable)
Returns:
a buffered image with the processed data

lookup2Color

public Color lookup2Color(double value)
Performs interpolation on a value, and returns a color built from the interpolated value. Uses binary search for optimization.

Parameters:
value - value
Returns:
the corresponding Color

lookup2

public final double lookup2(double value)
Looks up a value in the current data values. Uses binary search for optimization.

Parameters:
value -
Returns:
the interpolated value

toString

public String toString()
Overrides:
toString in class Object

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>