Package org.geotools.gce.imagemosaic
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 theStructuredGridCoverage2DReaderwould have used as the input for image creation in theGridCoverage2DReader.read(GeneralParameterValue[])method (with some exceptions, like footprints usage, as this transformation only sets up a filter against the associatedGranuleSource).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface CoverageReadingTransformation
CoverageReadingTransformation.ReaderAndParams
-
-
Field Summary
Fields Modifier and Type Field Description static FunctionNameNAME-
Fields inherited from class FunctionImpl
functionName
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description FootprintsTransformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleFeatureCollectionevaluate(Object object)Default implementation simply returns the fallbackValue.GridGeometryinvertGridGeometry(Query targetQuery, GridGeometry targetGridGeometry)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.QueryinvertQuery(Query targetQuery, GridGeometry gridGeometry)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.-
Methods inherited from class FunctionImpl
accept, dispatchArguments, equals, functionName, getFallbackValue, getFunctionName, getName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toString
-
Methods inherited from class ExpressionAbstract
evaluate
-
Methods inherited from interface Expression
accept, evaluate
-
Methods inherited from interface Function
getFallbackValue, getFunctionName, getName, getParameters
-
Methods inherited from interface RenderingTransformation
clipOnRenderingArea, customizeReadParams
-
-
-
-
Field Detail
-
NAME
public static FunctionName NAME
-
-
Method Detail
-
evaluate
public SimpleFeatureCollection evaluate(Object object)
Description copied from class:FunctionImplDefault implementation simply returns the fallbackValue.Please override this method to produce a value based on the provided arguments.
- Specified by:
evaluatein interfaceExpression- Overrides:
evaluatein classFunctionImpl- 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:RenderingTransformationGiven 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:
invertQueryin interfaceRenderingTransformation- Returns:
- The transformed query, or null if no inversion is possible/meaningful
-
invertGridGeometry
public GridGeometry invertGridGeometry(Query targetQuery, GridGeometry targetGridGeometry)
Description copied from interface:RenderingTransformationGiven 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:
invertGridGeometryin interfaceRenderingTransformation- Returns:
- The transformed query, or null if no inversion is possible/meaningful
-
-