public class Multiply extends BaseMathOperationJAI
Make sure coverages have same envelope and same resolution before using this operation.
Name: "Multiply"
JAI operator: "Multiply"
Parameters:
Name | Class | Default value | Minimum value | Maximum value |
---|---|---|---|---|
"Source0" |
GridCoverage2D |
N/A | N/A | N/A |
"Source1" |
GridCoverage2D |
N/A | N/A | N/A |
OperationJAI.Parameters
LOGGER, SOURCES, SOURCES_NAME
operation, RENDERED_MODE
PRIMARY_SOURCE_INDEX, SOURCE_0
descriptor
Constructor and Description |
---|
Multiply()
Constructs a default
"MultiplyConst" operation. |
Modifier and Type | Method and Description |
---|---|
protected NumberRange |
deriveRange(NumberRange[] ranges,
OperationJAI.Parameters parameters)
Returns the expected range of values for the resulting image.
|
protected void |
extractSources(ParameterValueGroup parameters,
Collection<GridCoverage2D> sources,
String[] sourceNames)
Extraction of the sources from the parameter called SOURCES.
|
String |
getName()
Returns the name of the processing operation.
|
protected Map<String,?> |
getProperties(RenderedImage data,
CoordinateReferenceSystem crs,
InternationalString name,
MathTransform gridToCRS,
GridCoverage2D[] sources,
OperationJAI.Parameters parameters)
Prepares the properties to be given to the coverage created by the
deriveGridCoverage method. |
protected void |
handleJAIEXTParams(ParameterBlockJAI parameters,
ParameterValueGroup parameters2)
Extension point for adding to the JAI
ParameterBlockJAI object the parameters defined
in the ParameterValueGroup , which can be read by the JAI-EXT operations. |
createRenderedImage, deriveCategory, deriveGridCoverage, deriveName, deriveSampleDimension, deriveUnit, doOperation, equals, getJAI, getOperationDescriptor, getQuantitative, handleROINoDataInternal, handleROINoDataProperties, hashCode, prepareParameters, resampleToCommonGeometry
extractSources, getFactory
getDescription, getDocURL, getNumSources, getParameters, getVendor, getVersion, toString
public String getName()
AbstractOperation
getName
in interface Operation
getName
in class AbstractOperation
protected NumberRange deriveRange(NumberRange[] ranges, OperationJAI.Parameters parameters)
deriveRange
in class OperationJAI
ranges
- The range of values from every sources. For unary operations this array has a
length of 1. For binary operations like "add"
and "multiply"
, this array
has a length of 2.parameters
- Parameters, rendering hints and coordinate reference system to use.null
if unknow.protected void handleJAIEXTParams(ParameterBlockJAI parameters, ParameterValueGroup parameters2)
OperationJAI
ParameterBlockJAI
object the parameters defined
in the ParameterValueGroup
, which can be read by the JAI-EXT operations.
Notice that if you are using JAI, the new parameters will not be accepted by the ParameterBlockJAI
instance.
handleJAIEXTParams
in class OperationJAI
parameters
- ParameterBlockJAI
instance used by the current JAI-EXT/JAI
operationparameters2
- ParameterValueGroup
instance containing input operation parametersprotected void extractSources(ParameterValueGroup parameters, Collection<GridCoverage2D> sources, String[] sourceNames) throws ParameterNotFoundException, InvalidParameterValueException
OperationJAI
extractSources
in class BaseMathOperationJAI
ParameterNotFoundException
InvalidParameterValueException
protected Map<String,?> getProperties(RenderedImage data, CoordinateReferenceSystem crs, InternationalString name, MathTransform gridToCRS, GridCoverage2D[] sources, OperationJAI.Parameters parameters)
OperationJAI
deriveGridCoverage
method. The default implementation returns null
.getProperties
in class OperationJAI
data
- The RenderedImage
created by this operation.crs
- The coordinate reference system assigned to the coverage this OperationJAI
will produce.name
- The name assigned to the coverage this OperationJAI
will produce.gridToCRS
- The transform from grid to crs
to be
assigned to the coverage this OperationJAI
will produce.sources
- The sources to be assigned to the coverage this OperationJAI
will
produce.parameters
- The parameters that were used by this OperationJAI
.Map
with the properties generated by this OperationJAI
or null if
we haven't any.Copyright © 1996–2019 Geotools. All rights reserved.