|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Support for writing grid coverages into a persistent store. Instance
of GridCoverageWriter
are obtained through a call to
GridCoverageExchange.getWriter(java.lang.Object, org.geotools.data.coverage.grid.Format)
. Grid coverages are usually
added to the output stream in a sequential order.
GridCoverageExchange.getWriter(java.lang.Object, org.geotools.data.coverage.grid.Format)
,
ImageWriter
Method Summary | |
void |
dispose()
Deprecated. Allows any resources held by this object to be released. |
java.lang.Object |
getDestination()
Deprecated. Returns the output destination. |
Format |
getFormat()
Deprecated. Returns the format handled by this GridCoverageWriter . |
java.lang.String[] |
getMetadataNames()
Deprecated. Returns the list of metadata keywords associated with the output destination as a whole (not associated with any particular grid coverage). |
void |
setCurrentSubname(java.lang.String name)
Deprecated. Set the name for the next grid coverage to write within the output destination. |
void |
setMetadataValue(java.lang.String name,
java.lang.String value)
Deprecated. Sets the metadata value for a given metadata name. |
void |
write(org.opengis.coverage.grid.GridCoverage coverage,
org.opengis.parameter.ParameterValueGroup parameters)
Deprecated. Writes the specified grid coverage. |
Method Detail |
public Format getFormat()
GridCoverageWriter
.
public java.lang.Object getDestination()
GridCoverageExchange.getWriter(java.lang.Object, org.geotools.data.coverage.grid.Format)
method. It can be a
String
, an OutputStream
,
a FileChannel
, etc.
public java.lang.String[] getMetadataNames()
java.io.IOException
- if an error occurs during reading or writing.public void setMetadataValue(java.lang.String name, java.lang.String value) throws java.io.IOException, org.opengis.coverage.MetadataNameNotFoundException
name
- Metadata keyword for which to set the metadata.value
- The metadata value for the given metadata name.
java.io.IOException
- if an error occurs during writing.
org.opengis.coverage.MetadataNameNotFoundException
- if the specified metadata name is not handled
for this format.public void setCurrentSubname(java.lang.String name) throws java.io.IOException
java.io.IOException
- if an error occurs during writing.public void write(org.opengis.coverage.grid.GridCoverage coverage, org.opengis.parameter.ParameterValueGroup parameters) throws java.lang.IllegalArgumentException, java.io.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()
.
org.opengis.parameter.InvalidParameterNameException
- if a parameter in parameters
doesn't have a recognized name.
org.opengis.parameter.InvalidParameterValueException
- if a parameter in parameters
doesn't have a valid value.
org.opengis.parameter.ParameterNotFoundException
- if a parameter was required for the operation but was
not provided in the parameters
list.
org.opengis.coverage.grid.FileFormatNotCompatibleWithGridCoverageException
- if the grid coverage
can't be exported in the writer format.
java.io.IOException
- if the export failed for some other input/output reason, including
IIOException
if an error was thrown by the underlying
image library.
java.lang.IllegalArgumentException
public void dispose() throws java.io.IOException
GridCoverageWriter
.
Otherwise, the writer may continue to hold on to resources indefinitely.
java.io.IOException
- if an error occured while disposing resources
(for example while flushing data and closing a file).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |