|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.gp.GridCoverageProcessor
DefaultProcessor
.
Allows for different ways of accessing the grid coverage values. Using one of these operations to change the way the grid is being accessed will not affect the state of the grid coverage controlled by another operations. For example, changing the interpolation method should not affect the number of sample dimensions currently being accessed or value sequence.
Constructor Summary | |
protected |
GridCoverageProcessor()
Deprecated. Construct a grid coverage processor with no operation and using the default JAI instance. |
|
GridCoverageProcessor(GridCoverageProcessor processor,
java.awt.RenderingHints hints)
Deprecated. Construct a grid coverage processor initialized with the same set of operations than the specified processor. |
Method Summary | |
protected void |
addOperation(Operation operation)
Deprecated. Add the specified operation to this processor. |
GridCoverage |
doOperation(Operation operation,
javax.media.jai.ParameterList parameters)
Deprecated. Apply a process operation to a grid coverage. |
GridCoverage |
doOperation(java.lang.String operationName,
GridCoverage source)
Deprecated. Convenience method applying a process operation with default parameters. |
GridCoverage |
doOperation(java.lang.String operationName,
GridCoverage source,
java.lang.String argumentName1,
java.lang.Object argumentValue1)
Deprecated. Convenience method applying a process operation with one parameter. |
GridCoverage |
doOperation(java.lang.String operationName,
GridCoverage source,
java.lang.String argumentName1,
java.lang.Object argumentValue1,
java.lang.String argumentName2,
java.lang.Object argumentValue2)
Deprecated. Convenience method applying a process operation with two parameters. |
GridCoverage |
doOperation(java.lang.String operationName,
GridCoverage source,
java.lang.String argumentName1,
java.lang.Object argumentValue1,
java.lang.String argumentName2,
java.lang.Object argumentValue2,
java.lang.String argumentName3,
java.lang.Object argumentValue3)
Deprecated. Convenience method applying a process operation with three parameters. |
GridCoverage |
doOperation(java.lang.String operationName,
javax.media.jai.ParameterList parameters)
Deprecated. Apply a process operation to a grid coverage. |
static GridCoverageProcessor |
getDefault()
Deprecated. Returns the default grid coverage processor. |
Operation |
getOperation(java.lang.String name)
Deprecated. Returns the operation for the specified name. |
Operation[] |
getOperations()
Deprecated. Retrieve grid processing operation informations. |
java.lang.Object |
getRenderingHint(java.awt.RenderingHints.Key key)
Deprecated. Returns a rendering hint. |
static void |
main(java.lang.String[] args)
Deprecated. Dumps to the standard output stream a list of operations for the default GridCoverageProcessor . |
void |
print(java.io.Writer out)
Deprecated. Print a description of all operations to the specified stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected GridCoverageProcessor()
JAI
instance. Operations can be added by invoking
the addOperation(org.geotools.gp.Operation)
method at construction time.
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
.
public GridCoverageProcessor(GridCoverageProcessor processor, java.awt.RenderingHints hints)
addOperation(org.geotools.gp.Operation)
method at construction time.
processor
- The processor to inherit from, or null
if none.hints
- A set of supplemental rendering hints, or null
if none.Method Detail |
public static GridCoverageProcessor getDefault()
public final java.lang.Object getRenderingHint(java.awt.RenderingHints.Key key)
key
- The hint key (e.g. Hints.JAI_INSTANCE
).
protected void addOperation(Operation operation) throws java.lang.IllegalStateException
GridCoverageProcessor
instances should be
immutable.
operation
- The operation to add.
java.lang.IllegalStateException
- if an operation already exists
with the same name than operation
.public Operation[] getOperations()
public Operation getOperation(java.lang.String name) throws OperationNotFoundException
name
- Name of the operation.
OperationNotFoundException
- if there is no operation for the specified name.public GridCoverage doOperation(java.lang.String operationName, GridCoverage source) throws OperationNotFoundException
operationName
- Name of the operation to be applied to the grid coverage..source
- The source grid coverage.
OperationNotFoundException
- if there is no operation named operationName
.doOperation(Operation,ParameterList)
public GridCoverage doOperation(java.lang.String operationName, GridCoverage source, java.lang.String argumentName1, java.lang.Object argumentValue1) throws OperationNotFoundException, java.lang.IllegalArgumentException
operationName
- Name of the operation to be applied to the grid coverage..source
- The source grid coverage.argumentName1
- The name of the first parameter to set.argumentValue1
- The value for the first parameter.
OperationNotFoundException
- if there is no operation named operationName
.
java.lang.IllegalArgumentException
- if there is no parameter with the specified name.doOperation(Operation,ParameterList)
public GridCoverage doOperation(java.lang.String operationName, GridCoverage source, java.lang.String argumentName1, java.lang.Object argumentValue1, java.lang.String argumentName2, java.lang.Object argumentValue2) throws OperationNotFoundException, java.lang.IllegalArgumentException
operationName
- Name of the operation to be applied to the grid coverage..source
- The source grid coverage.argumentName1
- The name of the first parameter to set.argumentValue1
- The value for the first parameter.argumentName2
- The name of the second parameter to set.argumentValue2
- The value for the second parameter.
OperationNotFoundException
- if there is no operation named operationName
.
java.lang.IllegalArgumentException
- if there is no parameter with the specified name.doOperation(Operation,ParameterList)
public GridCoverage doOperation(java.lang.String operationName, GridCoverage source, java.lang.String argumentName1, java.lang.Object argumentValue1, java.lang.String argumentName2, java.lang.Object argumentValue2, java.lang.String argumentName3, java.lang.Object argumentValue3) throws OperationNotFoundException, java.lang.IllegalArgumentException
operationName
- Name of the operation to be applied to the grid coverage..source
- The source grid coverage.argumentName1
- The name of the first parameter to set.argumentValue1
- The value for the first parameter.argumentName2
- The name of the second parameter to set.argumentValue2
- The value for the second parameter.argumentName3
- The name of the third parameter to set.argumentValue3
- The value for the third parameter.
OperationNotFoundException
- if there is no operation named operationName
.
java.lang.IllegalArgumentException
- if there is no parameter with the specified name.doOperation(Operation,ParameterList)
public GridCoverage doOperation(java.lang.String operationName, javax.media.jai.ParameterList parameters) throws OperationNotFoundException
operationName
- Name of the operation to be applied to the grid coverage.parameters
- List of name value pairs for the parameters required for the operation.
The easiest way to construct this list is to invoke getOperation
(name).getParameterList
()
and to modify the returned list.
OperationNotFoundException
- if there is no operation named operationName
.public GridCoverage doOperation(Operation operation, javax.media.jai.ParameterList parameters)
Operation.doOperation(javax.media.jai.ParameterList, java.awt.RenderingHints)
. If all source coverages used the same
interpolation, the same interpolation is applied to the resulting
coverage (except if the resulting coverage has already an interpolation).
operation
- The operation to be applied to the grid coverage.parameters
- List of name value pairs for the parameters required for
the operation. The easiest way to construct this list is to invoke
operation.getParameterList
()
and to modify the returned list.
public void print(java.io.Writer out) throws java.io.IOException
out
- The destination stream.
java.io.IOException
- if an error occured will writing to the stream.public static void main(java.lang.String[] args)
GridCoverageProcessor
. This method can been invoked from the
command line. For example:
Note for Windows users: If the output contains strange symbols, try to supply an "java org.geotools.gc.GridCoverageProcessor
-encoding
" argument. Example:
The codepage number (850 in the previous example) can be obtained from the DOS commande line by entering the "java org.geotools.gc.GridCoverageProcessor -encoding Cp850
chcp
" command with no arguments.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |