public class GrassCoverageWriter extends AbstractGridCoverageWriter implements GridCoverageWriter
The class writes a GRASS raster map to a GRASS workspace (see package documentation for further info). The writing is really done via Imageio extended classes.
GrassBinaryImageWriter
,
GrassBinaryRasterWriteHandler
destination, hints, outStream
Constructor and Description |
---|
GrassCoverageWriter(Object output)
Constructor for the
GrassCoverageWriter . |
Modifier and Type | Method and Description |
---|---|
Format |
getFormat()
Returns the format handled by this
GridCoverageWriter . |
void |
setProgressListener(ProgressListener monitor) |
void |
write(GridCoverage coverage,
GeneralParameterValue[] parameters)
Writes the specified grid coverage.
|
void |
writeRaster(GridCoverage2D gridCoverage2D)
Writes the
supplied coverage to disk. |
void |
writeRaster(GridCoverage2D gridCoverage2D,
GeneralParameterValue[] params) |
dispose, finalize, getDestination, getMetadataNames, setCurrentSubname, setMetadataValue
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, getDestination, getMetadataNames, setCurrentSubname, setMetadataValue
public GrassCoverageWriter(Object output)
GrassCoverageWriter
.public void setProgressListener(ProgressListener monitor)
public void writeRaster(GridCoverage2D gridCoverage2D) throws IOException
supplied coverage
to disk.
Note that this also takes care to cloes the file handle after writing to disk.
gridCoverage2D
- the coverage to write.IOException
public void writeRaster(GridCoverage2D gridCoverage2D, GeneralParameterValue[] params) throws IOException
IOException
public Format getFormat()
GridCoverageWriter
GridCoverageWriter
.getFormat
in interface GridCoverageWriter
public void write(GridCoverage coverage, GeneralParameterValue[] parameters) throws IllegalArgumentException, IOException
GridCoverageWriter
write
in interface GridCoverageWriter
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.IllegalArgumentException
Copyright © 1996–2019 Geotools. All rights reserved.