|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GridCoverageWriter
Support for writing grid coverages into a persistent store. Instance of
GridCoverageWriter are obtained through a call to
GridCoverageExchange.getWriter(java.lang.Object, org.deegree.model.coverage.grid.Format). Grid coverages are usually added to the output stream in
a sequential order.
GridCoverageExchange.getWriter(java.lang.Object, org.deegree.model.coverage.grid.Format),
ImageWriter| Method Summary | |
|---|---|
void |
dispose()
Allows any resources held by this object to be released. |
String |
getCurrentSubname()
Returns the name for the next grid coverage to be write to the output destination. |
Object |
getDestination()
Returns the output destination. |
Format |
getFormat()
Returns the format handled by this GridCoverageWriter. |
String[] |
getMetadataNames()
Returns the list of metadata keywords associated with the output destination as a whole (not associated with any particular grid coverage). |
Object |
getMetadataValue(String name)
Retrieve the metadata value for a given metadata name. |
String[] |
listSubNames()
Retrieve the list of grid coverages contained within the input source. |
void |
setCurrentSubname(String name)
Set the name for the next grid coverage to write within the output destination. |
void |
setMetadataValue(String name,
String value)
Sets the metadata value for a given metadata name. |
void |
write(GridCoverage coverage,
GeneralParameterValueIm[] parameters)
Writes the specified grid coverage. |
| Method Detail |
|---|
Format getFormat()
GridCoverageWriter.
GridCoverageWriter.Object getDestination()
GridCoverageExchange.getWriter(java.lang.Object, org.deegree.model.coverage.grid.Format) method. It can be a String, an
OutputStream, a FileChannel, etc.
String[] getMetadataNames()
Object getMetadataValue(String name)
throws IOException,
MetadataNameNotFoundException
name - Metadata keyword for which to retrieve metadata.
getMetadataNames().
IOException - if an error occurs during reading.
MetadataNameNotFoundException - if there is no value for the specified metadata name.
void setMetadataValue(String name,
String value)
throws IOException,
MetadataNameNotFoundException
name - Metadata keyword for which to set the metadata.value - The metadata value for the given metadata name.
IOException - if an error occurs during writing.
MetadataNameNotFoundException - if the specified metadata name is not handled for this format.
String[] listSubNames()
throws IOException
IOException - if an error occurs during reading.
String getCurrentSubname()
throws IOException
IOException - if an error occurs during reading.
void setCurrentSubname(String name)
throws IOException
name -
IOException - if an error occurs during writing.
void write(GridCoverage coverage,
GeneralParameterValueIm[] parameters)
throws InvalidParameterNameException,
InvalidParameterValueException,
ParameterNotFoundException,
IOException
coverage - The grid coverage to write.parameters - An optional set of parameters. Should be any or all of the parameters returned by
Format.getWriteParameters().
InvalidParameterNameException - if a parameter in parameters doesn't have a recognized name.
InvalidParameterValueException - if a parameter in parameters doesn't have a valid value.
ParameterNotFoundException - if a parameter was required for the operation but was not provided in the
parameters list.
IOException - if the export failed for some other input/output reason, including
IIOException if an error was thrown by the underlying image
library.
void dispose()
throws IOException
GridCoverageWriter. Otherwise, the writer may continue to hold on to
resources indefinitely.
IOException - if an error occured while disposing resources (for example while flushing data
and closing a file).
|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org