Package org.geotools.process.raster
Class JiffleProcess
Object
JiffleProcess
- All Implemented Interfaces:
RasterProcess
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncustomizeReadParams
(String script, String destName, String[] sourceNames, int[] usedBands, GridCoverageReader reader, GeneralParameterValue[] params) This is called by the renderer to optimize the read, if possible, we'll customize the band reading so that we read only what we know will be used by the script.execute
(GridCoverage2D[] coverages, String script, String destName, String[] sourceNames, Range.DataType dataType, Integer outputBandCount, String outputBandNames, ProgressListener progressListener) Executes a Jiffle raster algebra.
-
Field Details
-
IN_COVERAGE
- See Also:
-
IN_SCRIPT
- See Also:
-
IN_DEST_NAME
- See Also:
-
IN_SOURCE_NAME
- See Also:
-
IN_OUTPUT_TYPE
- See Also:
-
OUTPUT_BAND_COUNT
- See Also:
-
OUTPUT_BAND_NAMES
- See Also:
-
OUT_RESULT
- See Also:
-
TX_BANDS
- See Also:
-
-
Constructor Details
-
JiffleProcess
public JiffleProcess()
-
-
Method Details
-
execute
public GridCoverage2D execute(GridCoverage2D[] coverages, String script, String destName, String[] sourceNames, Range.DataType dataType, Integer outputBandCount, String outputBandNames, ProgressListener progressListener) throws ProcessException, JiffleException Executes a Jiffle raster algebra. Check theDescribeParameter
annotations for a description of the various arguments- Throws:
ProcessException
JiffleException
-
customizeReadParams
public GeneralParameterValue[] customizeReadParams(String script, String destName, String[] sourceNames, int[] usedBands, GridCoverageReader reader, GeneralParameterValue[] params) This is called by the renderer to optimize the read, if possible, we'll customize the band reading so that we read only what we know will be used by the script. At the time of writing, this works only if band positions in the script are literals.
-