|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.coverage.processing.AbstractProcessor
Base class for coverage processor implementations.
Field Summary | |
static java.util.logging.Logger |
LOGGER
The logger for coverage processing operations. |
static java.util.logging.Level |
OPERATION
The logging level for reporting coverage operations. |
Constructor Summary | |
AbstractProcessor()
Constructs a coverage processor. |
Method Summary | |
abstract org.opengis.coverage.Coverage |
doOperation(org.opengis.parameter.ParameterValueGroup parameters)
Applies an operation. |
static AbstractProcessor |
getInstance()
Returns a default processor instance. |
java.util.Locale |
getLocale()
The locale for logging message or reporting errors. |
abstract org.opengis.coverage.processing.Operation |
getOperation(java.lang.String name)
Returns the operation for the specified name. |
abstract java.util.Collection |
getOperations()
Retrieves grid processing operations information. |
void |
listOperations(java.io.Writer out)
Lists a summary of all operations to the specified stream. |
static void |
main(java.lang.String[] args)
Dumps to the standard output stream a list of operations for the default processor. |
void |
printOperations(java.io.Writer out,
java.lang.String[] names)
Prints a description of operations to the specified stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.util.logging.Logger LOGGER
public static final java.util.logging.Level OPERATION
Level.INFO
.
Constructor Detail |
public AbstractProcessor()
Method Detail |
public static AbstractProcessor getInstance()
Note: this is a temporary method, until we have GeoAPI interface for coverage processor and a factory finder for their implementations.
public abstract java.util.Collection getOperations()
public abstract org.opengis.coverage.processing.Operation getOperation(java.lang.String name) throws org.opengis.coverage.processing.OperationNotFoundException
name
- Name of the operation.
org.opengis.coverage.processing.OperationNotFoundException
- if there is no operation for the specified name.public abstract org.opengis.coverage.Coverage doOperation(org.opengis.parameter.ParameterValueGroup parameters) throws org.opengis.coverage.processing.OperationNotFoundException
parameters
- Parameters required for the operation.
org.opengis.coverage.processing.OperationNotFoundException
- if there is no operation for the parameter group name.public java.util.Locale getLocale()
public void listOperations(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 void printOperations(java.io.Writer out, java.lang.String[] names) throws org.opengis.coverage.processing.OperationNotFoundException, java.io.IOException
out
- The destination stream.names
- The operation to print, or an empty array for none, or for all.
java.io.IOException
- if an error occured will writing to the stream.
org.opengis.coverage.processing.OperationNotFoundException
- if an operation named in was not found.public static void main(java.lang.String[] args)
Note for Windows users: If the output contains strange symbols, try to supply an "" argument. Example:java org.geotools.coverage.processing.DefaultProcessor Interpolate
The codepage number (850 in the previous example) can be fetch from the DOS command line by entering the "" command with no arguments.java org.geotools.coverage.processing.DefaultProcessor -encoding Cp850
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |