|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFactory
AbstractCoverageProcessor
DefaultCoverageProcessor
@ThreadSafe public class DefaultCoverageProcessor
Default implementation of a Coverage processor. This default implementation makes the following assumptions:
META-INF/services/org.opengis.coverage.processing.Operation file.AbstractOperation (note: this
constraint may be relaxed in a future version after GeoAPI interfaces for grid
coverage will be redesigned).
Note: This implementation does not cache produced coverages.
Since coverages may be big, consider wrapping DefaultCoverageProcessor
instances in CachingCoverageProcessor.
| coverage/geotk-coverage (download) | View source code for this class |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Factory |
|---|
Factory.Availability, Factory.Organizer |
| Field Summary |
|---|
| Fields inherited from class AbstractCoverageProcessor |
|---|
LOGGER, OPERATION |
| Fields inherited from class Factory |
|---|
EMPTY_HINTS, hints |
| Constructor Summary | |
|---|---|
DefaultCoverageProcessor(Hints userHints)
Constructs a coverage processor from the given hints. |
|
| Method Summary | |
|---|---|
protected void |
addOperation(Operation operation)
Adds the specified operation to this processor. |
Coverage |
doOperation(ParameterValueGroup parameters)
Applies a process operation to a coverage. |
Operation |
getOperation(String name)
Returns the operation for the specified name. |
Collection<Operation> |
getOperations()
Retrieves grid processing operations information. |
Object |
getRenderingHint(RenderingHints.Key key)
Returns a rendering hint. |
void |
scanForPlugins()
Scans for factory plug-ins on the application class path. |
| Methods inherited from class AbstractCoverageProcessor |
|---|
getInstance, getLocale, listOperations, printOperations |
| Methods inherited from class Factory |
|---|
availability, dispose, equals, getImplementationHints, hasCompatibleHints, hashCode, setOrdering, toString |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCoverageProcessor(Hints userHints)
scanForPlugins()
method will be automatically invoked the first time an operation is required.
Additional operations can be added by subclasses with the addOperation(org.opengis.coverage.processing.Operation) method.
Rendering hints will be initialized with the following hints:
JAI.KEY_REPLACE_INDEX_COLOR_MODEL set to Boolean.FALSE.JAI.KEY_TRANSFORM_ON_COLORMAP set to Boolean.FALSE.
userHints - A set of additional rendering hints, or null if none.| Method Detail |
|---|
protected void addOperation(Operation operation)
throws IllegalStateException
operation - The operation to add.
IllegalStateException - if an operation already exists with the same name.public Collection<Operation> getOperations()
getOperations in interface GridCoverageProcessorgetOperations in class AbstractCoverageProcessor
public Operation getOperation(String name)
throws OperationNotFoundException
getOperation in class AbstractCoverageProcessorname - Name of the operation (case insensitive).
OperationNotFoundException - if there is no operation for the specified name.public final Object getRenderingHint(RenderingHints.Key key)
key - The hint key (e.g. Hints.JAI_INSTANCE).
null if there is no hint for the
specified key.
public Coverage doOperation(ParameterValueGroup parameters)
throws CoverageProcessingException,
OperationNotFoundException
AbstractOperation.doOperation(org.opengis.parameter.ParameterValueGroup, org.geotoolkit.factory.Hints).
If all source coverages used the same interpolation, then this interpolation is applied
to the resulting coverage (except if the resulting coverage has already an interpolation).
doOperation in class AbstractCoverageProcessorparameters - Parameters required for the operation. The easiest way to construct them
is to invoke operation.getParameters()
and to modify the returned group.
OperationNotFoundException - if there is no operation for the parameter group name.
CoverageProcessingException - if the operation can not be executed.public void scanForPlugins()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||