org.geotools.coverage.processing
Class BaseScaleOperationJAI
java.lang.Object
org.geotools.coverage.processing.AbstractOperation
org.geotools.coverage.processing.Operation2D
org.geotools.coverage.processing.OperationJAI
org.geotools.coverage.processing.BaseScaleOperationJAI
- All Implemented Interfaces:
- java.io.Serializable, org.opengis.coverage.processing.Operation
- Direct Known Subclasses:
- FilteredSubsample, Scale, SubsampleAverage
public 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 org.geotools.coverage.processing.OperationJAI |
createRenderedImage, deriveCategory, deriveName, deriveRange, deriveSampleDimension, deriveUnit, doOperation, equals, getJAI, getOperationDescriptor, getProperties, getQuantitative, prepareParameters, resampleToCommonGeometry |
Methods inherited from class org.geotools.coverage.processing.AbstractOperation |
ensureNonNull, getDescription, getDocURL, getName, getNumSources, getParameters, getProcessor, getVendor, getVersion, hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BaseScaleOperationJAI
public BaseScaleOperationJAI(java.lang.String operation)
throws org.opengis.coverage.processing.OperationNotFoundException
- Constructor for
BaseScaleOperationJAI
.
- Parameters:
operation
- name of the JAI
operation we wrap.
- Throws:
org.opengis.coverage.processing.OperationNotFoundException
BaseScaleOperationJAI
public BaseScaleOperationJAI(javax.media.jai.OperationDescriptor operation)
- Constructor for
BaseScaleOperationJAI
.
- Parameters:
operation
- OperationDescriptor
of the JAI
operation we wrap.
BaseScaleOperationJAI
public BaseScaleOperationJAI(javax.media.jai.OperationDescriptor operation,
org.opengis.parameter.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-2010 Geotools. All Rights Reserved.