Class TLcdSLDFunctionEvaluatorFactory

java.lang.Object
com.luciad.ogc.sld.evaluator.TLcdSLDFunctionEvaluatorFactory
All Implemented Interfaces:
ILcdEvaluatorFactory

@Deprecated public class TLcdSLDFunctionEvaluatorFactory extends Object implements ILcdEvaluatorFactory
Deprecated.
As this ILcdEvaluatorFactory is already used by the TLcdOGCFilterEvaluator, there is no reason for using this class directly.
Evaluator factory for functions from SLD 1.1.0. This evaluator factory is used by TLcdOGCFilterEvaluator to support SLD specific expressions.

This evaluator factory supports the following elements:

  • Recode
  • Interpolate
  • Categorize
  • StringLength
  • StringPosition
  • Trim
  • ChangeCase
  • Concatenate
  • SubString
  • FormatDate
  • FormatNumber
  • ParameterValue
Since:
2012.1
  • Constructor Details

    • TLcdSLDFunctionEvaluatorFactory

      public TLcdSLDFunctionEvaluatorFactory()
      Deprecated.
      Creates a new Evaluator factory.
  • Method Details

    • canBuildEvaluator

      public boolean canBuildEvaluator(ILcdGenericExpression aGenericExpression)
      Deprecated.
      Description copied from interface: ILcdEvaluatorFactory
      Indicates whether this factory is capable of creating an evaluator for the given expression. The implementation of this method should be compatible with the implementation of populateCapabilities. If a factory can handle a given expression, this should also be clear from the filter capabilities produced by this factory.
      Specified by:
      canBuildEvaluator in interface ILcdEvaluatorFactory
      Parameters:
      aGenericExpression - the expression to build an evaluator for, if possible.
      Returns:
      whether or not this factory is capable of providing an ILcdEvaluator that can handle the expression given.
    • buildEvaluator

      public ILcdEvaluator buildEvaluator(ILcdGenericExpression aGenericExpression, ILcdEvaluatorFactory aEvaluatorFactory, TLcdOGCFilterContext aContext)
      Deprecated.
      Description copied from interface: ILcdEvaluatorFactory
      Creates an evaluator for the given expression in the given filter context. This method should only be called if canBuildEvaluator returned true.
      Specified by:
      buildEvaluator in interface ILcdEvaluatorFactory
      Parameters:
      aGenericExpression - the expression to build an evaluator for.
      aEvaluatorFactory - the evaluator factory to use to build evaluators for sub-expressions, since an expression may be composed of other expressions.
      aContext - the context for which to create the evaluator. The context among others contains a property retriever provider to determine how properties should be retrieved from (OGC) features.
      Returns:
      an evaluator that evaluates the expression.
    • populateCapabilities

      public void populateCapabilities(TLcdOGCFilterCapabilities aFilterCapabilities)
      Deprecated.
      Description copied from interface: ILcdEvaluatorFactory
      Populates the filter capabilities, indicating what kind of expressions can be evaluated. If an expression is supported as documented in the capabilities, the method canBuildEvaluator should return true.
      Specified by:
      populateCapabilities in interface ILcdEvaluatorFactory
      Parameters:
      aFilterCapabilities - the filter capabilities in which to declare what kind of expressions can be evaluated.