|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.coverage.processing.AbstractProcessor org.geotools.coverage.processing.DefaultProcessor
Default implementation of a coverage processor. This default implementation makes the following assumptions:
AbstractOperation
(note: this constraint
may be relaxed in a future version after GeoAPI interfaces for grid coverage will be
redesigned).
Note: This implementation do not caches produced coverages. Since coverages
may be big, consider wrapping instances in BufferedProcessor
.
Field Summary |
Fields inherited from class org.geotools.coverage.processing.AbstractProcessor |
LOGGER, OPERATION |
Constructor Summary | |
DefaultProcessor(java.awt.RenderingHints hints)
Constructs a default coverage processor. |
Method Summary | |
protected void |
addOperation(org.opengis.coverage.processing.Operation operation)
Add the specified operation to this processor. |
org.opengis.coverage.Coverage |
doOperation(org.opengis.parameter.ParameterValueGroup parameters)
Applies a process operation to a coverage. |
org.opengis.coverage.processing.Operation |
getOperation(java.lang.String name)
Returns the operation for the specified name. |
java.util.Collection |
getOperations()
Retrieves grid processing operations information. |
java.lang.Object |
getRenderingHint(java.awt.RenderingHints.Key key)
Returns a rendering hint. |
void |
scanForPlugins()
Scans for factory plug-ins on the application class path. |
Methods inherited from class org.geotools.coverage.processing.AbstractProcessor |
getInstance, getLocale, listOperations, main, printOperations |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultProcessor(java.awt.RenderingHints hints)
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
.
hints
- A set of additional rendering hints, or if none.Method Detail |
protected void addOperation(org.opengis.coverage.processing.Operation operation) throws java.lang.IllegalStateException
operation
- The operation to add.
java.lang.IllegalStateException
- if an operation already exists with the same name.public java.util.Collection getOperations()
getOperations
in class AbstractProcessor
public org.opengis.coverage.processing.Operation getOperation(java.lang.String name) throws org.opengis.coverage.processing.OperationNotFoundException
getOperation
in class AbstractProcessor
name
- Name of the operation (case insensitive).
org.opengis.coverage.processing.OperationNotFoundException
- if there is no operation for the specified name.public final java.lang.Object getRenderingHint(java.awt.RenderingHints.Key key)
key
- The hint key (e.g. Hints.JAI_INSTANCE
).
public org.opengis.coverage.Coverage doOperation(org.opengis.parameter.ParameterValueGroup parameters) throws org.opengis.coverage.processing.OperationNotFoundException
AbstractOperation.doOperation(org.opengis.parameter.ParameterValueGroup, org.geotools.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 AbstractProcessor
parameters
- Parameters required for the operation. The easiest way to construct them
is to invoke operation.getParameters
()
and to modify the returned group.
org.opengis.coverage.processing.OperationNotFoundException
- if there is no operation for the parameter group name.public void scanForPlugins()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |