Package org.geotools.gce.grassraster
Class GrassCoverageWriter
Object
AbstractGridCoverageWriter
GrassCoverageWriter
- All Implemented Interfaces:
GridCoverageWriter
Coverage Writer class for writing GRASS raster maps.
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.
- Since:
- 3.0
- Author:
- Andrea Antonello (www.hydrologis.com)
- See Also:
-
Field Summary
Fields inherited from class AbstractGridCoverageWriter
destination, hints, outStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the format handled by thisGridCoverageWriter.voidsetProgressListener(ProgressListener monitor) voidwrite(GridCoverage coverage, GeneralParameterValue... parameters) Writes the specified grid coverage.voidwriteRaster(GridCoverage2D gridCoverage2D) Writes thesupplied coverageto disk.voidwriteRaster(GridCoverage2D gridCoverage2D, GeneralParameterValue... params) Methods inherited from class AbstractGridCoverageWriter
dispose, finalize, getDestination, getMetadataNames, setCurrentSubname, setMetadataValueMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GridCoverageWriter
dispose, getDestination, getMetadataNames, setCurrentSubname, setMetadataValue
-
Constructor Details
-
GrassCoverageWriter
Constructor for theGrassCoverageWriter.
-
-
Method Details
-
setProgressListener
-
writeRaster
Writes thesupplied coverageto disk.Note that this also takes care to cloes the file handle after writing to disk.
- Parameters:
gridCoverage2D- the coverage to write.- Throws:
IOException
-
writeRaster
public void writeRaster(GridCoverage2D gridCoverage2D, GeneralParameterValue... params) throws IOException - Throws:
IOException
-
getFormat
Description copied from interface:GridCoverageWriterReturns the format handled by thisGridCoverageWriter.- Specified by:
getFormatin interfaceGridCoverageWriter
-
write
public void write(GridCoverage coverage, GeneralParameterValue... parameters) throws IllegalArgumentException, IOException Description copied from interface:GridCoverageWriterWrites the specified grid coverage.- Specified by:
writein interfaceGridCoverageWriter- Parameters:
coverage- The grid coverage to write.parameters- An optional set of parameters. Should be any or all of the parameters returned byFormat.getWriteParameters().- Throws:
InvalidParameterNameException- if a parameter inparametersdoesn't have a recognized name.InvalidParameterValueException- if a parameter inparametersdoesn't have a valid value.ParameterNotFoundException- if a parameter was required for the operation but was not provided in theparameterslist.IOException- if the export failed for some other input/output reason, includingIIOExceptionif an error was thrown by the underlying image library.IllegalArgumentException
-