Package org.geotools.process.raster
Class JiffleProcess
- Object
-
- JiffleProcess
-
- All Implemented Interfaces:
RasterProcess
public class JiffleProcess extends Object implements RasterProcess
-
-
Field Summary
Fields Modifier and Type Field Description static String
IN_COVERAGE
static String
IN_DEST_NAME
static String
IN_OUTPUT_TYPE
static String
IN_SCRIPT
static String
IN_SOURCE_NAME
static String
OUT_RESULT
static String
OUTPUT_BAND_COUNT
static String
OUTPUT_BAND_NAMES
static String
TX_BANDS
-
Constructor Summary
Constructors Constructor Description JiffleProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.GridCoverage2D
execute(GridCoverage2D[] coverages, String script, String destName, String[] sourceNames, Range.DataType dataType, Integer outputBandCount, String outputBandNames, ProgressListener progressListener)
Executes a Jiffle raster algebra.
-
-
-
Field Detail
-
IN_COVERAGE
public static final String IN_COVERAGE
- See Also:
- Constant Field Values
-
IN_SCRIPT
public static final String IN_SCRIPT
- See Also:
- Constant Field Values
-
IN_DEST_NAME
public static final String IN_DEST_NAME
- See Also:
- Constant Field Values
-
IN_SOURCE_NAME
public static final String IN_SOURCE_NAME
- See Also:
- Constant Field Values
-
IN_OUTPUT_TYPE
public static final String IN_OUTPUT_TYPE
- See Also:
- Constant Field Values
-
OUTPUT_BAND_COUNT
public static final String OUTPUT_BAND_COUNT
- See Also:
- Constant Field Values
-
OUTPUT_BAND_NAMES
public static final String OUTPUT_BAND_NAMES
- See Also:
- Constant Field Values
-
OUT_RESULT
public static final String OUT_RESULT
- See Also:
- Constant Field Values
-
TX_BANDS
public static final String TX_BANDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
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.
-
-