|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractProcessor
DefaultProcessor
public class DefaultProcessor
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 do not caches produced coverages. Since coverages
may be big, consider wrapping DefaultProcessor
instances in BufferedProcessor
.
Field Summary |
---|
Fields inherited from class AbstractProcessor |
---|
LOGGER, OPERATION |
Constructor Summary | |
---|---|
DefaultProcessor(RenderingHints hints)
Constructs a default coverage processor. |
Method Summary | |
---|---|
protected void |
addOperation(Operation operation)
Add 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 AbstractProcessor |
---|
getInstance, getLocale, listOperations, main, printOperations |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultProcessor(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 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 class AbstractProcessor
public Operation getOperation(String name) throws OperationNotFoundException
getOperation
in class AbstractProcessor
name
- 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 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.
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 |