Package org.geotools.coverage.processing
Class BaseMathOperationJAI
- Object
-
- AbstractOperation
-
- Operation2D
-
- OperationJAI
-
- BaseMathOperationJAI
-
- All Implemented Interfaces:
Serializable
,Operation
public abstract class BaseMathOperationJAI extends OperationJAI
This class is the root class for the Maths operations. It provides basic capabilities for management of geospatial parameters likeROI
s and subsampling factors.- Since:
- 14.x
- Author:
- Nicola Lagomarsini, GeoSolutions SAS
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class OperationJAI
OperationJAI.Parameters
-
-
Field Summary
Fields Modifier and Type Field Description static Logger
LOGGER
Logger
for this class.static ParameterDescriptor<Collection>
SOURCES
The parameter descriptor for the Sources.static String
SOURCES_NAME
Name for the Sources parameter-
Fields inherited from class OperationJAI
operation, RENDERED_MODE
-
Fields inherited from class Operation2D
PRIMARY_SOURCE_INDEX, SOURCE_0
-
Fields inherited from class AbstractOperation
descriptor
-
-
Constructor Summary
Constructors Constructor Description BaseMathOperationJAI(String name)
Constructor forBaseMathOperationJAI
.BaseMathOperationJAI(String name, OperationDescriptor operationDescriptor)
Constructor forBaseMathOperationJAI
.BaseMathOperationJAI(OperationDescriptor operationDescriptor)
Constructor forBaseMathOperationJAI
.BaseMathOperationJAI(OperationDescriptor operationDescriptor, ImagingParameterDescriptors replacements)
Constructor forBaseMathOperationJAI
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
extractSources(ParameterValueGroup parameters, Collection<GridCoverage2D> sources, String[] sourceNames)
Extraction of the sources from the parameter called SOURCES.-
Methods inherited from class OperationJAI
createRenderedImage, deriveCategory, deriveGridCoverage, deriveName, deriveRange, deriveSampleDimension, deriveUnit, doOperation, equals, getJAI, getOperationDescriptor, getProperties, getQuantitative, handleJAIEXTParams, handleROINoDataInternal, handleROINoDataProperties, hashCode, prepareParameters, resampleToCommonGeometry
-
Methods inherited from class Operation2D
extractSources, getFactory
-
Methods inherited from class AbstractOperation
getDescription, getDocURL, getName, getNumSources, getParameters, getVendor, getVersion, toString
-
-
-
-
Field Detail
-
SOURCES_NAME
public static final String SOURCES_NAME
Name for the Sources parameter- See Also:
- Constant Field Values
-
SOURCES
public static final ParameterDescriptor<Collection> SOURCES
The parameter descriptor for the Sources.
-
-
Constructor Detail
-
BaseMathOperationJAI
public BaseMathOperationJAI(OperationDescriptor operationDescriptor)
Constructor forBaseMathOperationJAI
.- Parameters:
operationDescriptor
-OperationDescriptor
for the underlying JAI operation.
-
BaseMathOperationJAI
public BaseMathOperationJAI(OperationDescriptor operationDescriptor, ImagingParameterDescriptors replacements)
Constructor forBaseMathOperationJAI
.- Parameters:
operationDescriptor
-OperationDescriptor
for the underlying JAI operation.replacements
-ImagingParameterDescriptors
that should replace the correspondentImagingParameters
in order to change the default behavior they have inside JAI.
-
BaseMathOperationJAI
public BaseMathOperationJAI(String name, OperationDescriptor operationDescriptor)
Constructor forBaseMathOperationJAI
.- Parameters:
name
- of the underlying JAI operation.
-
BaseMathOperationJAI
public BaseMathOperationJAI(String name)
Constructor forBaseMathOperationJAI
.- Parameters:
name
- of the underlying JAI operation.
-
-
Method Detail
-
extractSources
protected void extractSources(ParameterValueGroup parameters, Collection<GridCoverage2D> sources, String[] sourceNames) throws ParameterNotFoundException, InvalidParameterValueException
Description copied from class:OperationJAI
Extraction of the sources from the parameter called SOURCES. The sources are stored inside a List.- Overrides:
extractSources
in classOperationJAI
- Throws:
ParameterNotFoundException
InvalidParameterValueException
-
-