Class FootprintsTransformation

Object
ExpressionAbstract
FunctionImpl
FootprintsTransformation
All Implemented Interfaces:
Expression, Function, CoverageReadingTransformation, RenderingTransformation

public class FootprintsTransformation extends FunctionImpl implements CoverageReadingTransformation
Transformation returning the same granules that the StructuredGridCoverage2DReader would have used as the input for image creation in the GridCoverage2DReader.read(GeneralParameterValue[]) method (with some exceptions, like footprints usage, as this transformation only sets up a filter against the associated GranuleSource).
  • Field Details

  • Constructor Details

    • FootprintsTransformation

      public FootprintsTransformation()
  • Method Details

    • evaluate

      public SimpleFeatureCollection evaluate(Object object)
      Description copied from class: FunctionImpl
      Default implementation simply returns the fallbackValue.

      Please override this method to produce a value based on the provided arguments.

      Specified by:
      evaluate in interface Expression
      Overrides:
      evaluate in class FunctionImpl
      Parameters:
      object - Object being evaluated; often a Feature
      Returns:
      value for the provided object
    • invertQuery

      public Query invertQuery(Query targetQuery, GridGeometry gridGeometry)
      Description copied from interface: RenderingTransformation
      Given a target query and a target grid geometry returns the query to be used to read the input data of the function This method will be called only if the input data is a feature collection.
      Specified by:
      invertQuery in interface RenderingTransformation
      Returns:
      The transformed query, or null if no inversion is possible/meaningful
    • invertGridGeometry

      public GridGeometry invertGridGeometry(Query targetQuery, GridGeometry targetGridGeometry)
      Description copied from interface: RenderingTransformation
      Given a target query and a target grid geometry returns the grid geometry to be used to read the input data of the function involved in rendering. This method will be called only if the input data is a grid coverage or a grid coverage reader
      Specified by:
      invertGridGeometry in interface RenderingTransformation
      Returns:
      The transformed query, or null if no inversion is possible/meaningful