org.geotools.coverage.processing
Class BaseScaleOperationJAI
Object
AbstractOperation
Operation2D
OperationJAI
BaseScaleOperationJAI
- All Implemented Interfaces:
- Serializable, Operation
- Direct Known Subclasses:
- FilteredSubsample, Scale, SubsampleAverage, Warp
public abstract class BaseScaleOperationJAI
- extends OperationJAI
Base class for providing capabilities to scale GridCoverage2D
objects
using JAI scale operations.
This class tries to handles all the problems related to scaling index-color
images in order to avoid strange results in the smoothest possible way by
performing color expansions under the hood as needed. It may also apply some
optimizations in case we were dealing with non-geo view of coverage.
- Since:
- 2.5
- Author:
- Simone Giannecchini, GeoSolutions.
- See Also:
- Serialized Form
Methods inherited from class OperationJAI |
createRenderedImage, deriveCategory, deriveName, deriveRange, deriveSampleDimension, deriveUnit, doOperation, equals, getJAI, getOperationDescriptor, getProperties, getQuantitative, prepareParameters, resampleToCommonGeometry |
BaseScaleOperationJAI
public BaseScaleOperationJAI(String operation)
throws OperationNotFoundException
- Constructor for
BaseScaleOperationJAI
.
- Parameters:
operation
- name of the JAI
operation we wrap.
- Throws:
OperationNotFoundException
BaseScaleOperationJAI
public BaseScaleOperationJAI(OperationDescriptor operation)
- Constructor for
BaseScaleOperationJAI
.
- Parameters:
operation
- OperationDescriptor
of the JAI
operation we wrap.
BaseScaleOperationJAI
public BaseScaleOperationJAI(OperationDescriptor operation,
ParameterDescriptorGroup descriptor)
- Constructor for
BaseScaleOperationJAI
.
- Parameters:
operation
- OperationDescriptor
of the JAI
operation we wrap.descriptor
-
deriveGridCoverage
protected GridCoverage2D deriveGridCoverage(GridCoverage2D[] sources,
OperationJAI.Parameters parameters)
- Description copied from class:
OperationJAI
- Applies a JAI operation to a grid coverage. This method is invoked automatically by
OperationJAI.doOperation(org.opengis.parameter.ParameterValueGroup, org.geotools.factory.Hints)
. The default implementation performs the following steps:
- Overrides:
deriveGridCoverage
in class OperationJAI
- Parameters:
sources
- The source coverages.parameters
- Parameters, rendering hints and coordinate reference system to use.
- Returns:
- The result as a grid coverage.
- See Also:
OperationJAI.doOperation(org.opengis.parameter.ParameterValueGroup, org.geotools.factory.Hints)
,
OperationJAI.deriveSampleDimension(org.geotools.coverage.GridSampleDimension[][], org.geotools.coverage.processing.OperationJAI.Parameters)
,
JAI.createNS(java.lang.String, java.awt.image.renderable.ParameterBlock, java.awt.RenderingHints)
Copyright © 1996-2014 Geotools. All Rights Reserved.