org.geotools.gce.gtopo30
Class GTopo30Writer

Object
  extended by AbstractGridCoverageWriter
      extended by GTopo30Writer
All Implemented Interfaces:
GridCoverageWriter

public final class GTopo30Writer
extends AbstractGridCoverageWriter
implements GridCoverageWriter

Class used for encoding a GridCoverage2D into a GTOPO30 file.

Author:
Simone Giannecchini, jeichar, mkraemer

Field Summary
 
Fields inherited from class AbstractGridCoverageWriter
destination, hints, outStream
 
Constructor Summary
GTopo30Writer(Object dest)
          Creates a GTopo30Writer.
GTopo30Writer(Object dest, Hints hints)
          Creates a GTopo30Writer.
 
Method Summary
 Format getFormat()
          Returns the format handled by this GridCoverageWriter.
 void write(GridCoverage coverage, GeneralParameterValue[] params)
          Writes the specified grid coverage.
 
Methods inherited from class AbstractGridCoverageWriter
dispose, finalize, getDestination, getMetadataNames, setCurrentSubname, setMetadataValue
 
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface GridCoverageWriter
dispose, getDestination, getMetadataNames, setCurrentSubname, setMetadataValue
 

Constructor Detail

GTopo30Writer

public GTopo30Writer(Object dest)
              throws DataSourceException
Creates a GTopo30Writer.

Parameters:
dest - The destination object can be a File (a directory actually), an URL to a directory, or a String representing a directory or an URL to a directory.
Throws:
DataSourceException

GTopo30Writer

public GTopo30Writer(Object dest,
                     Hints hints)
              throws DataSourceException
Creates a GTopo30Writer.

Parameters:
dest - The destination object can be a File (a directory actually), an URL to a directory, or a String representing a directory or an URL to a directory.
Throws:
DataSourceException
Method Detail

getFormat

public Format getFormat()
Description copied from interface: GridCoverageWriter
Returns the format handled by this GridCoverageWriter.

Specified by:
getFormat in interface GridCoverageWriter
See Also:
GridCoverageWriter.getFormat()

write

public void write(GridCoverage coverage,
                  GeneralParameterValue[] params)
           throws IllegalArgumentException,
                  IOException
Description copied from interface: GridCoverageWriter
Writes the specified grid coverage.

Specified by:
write in interface GridCoverageWriter
Parameters:
coverage - The grid coverage to write.
params - An optional set of parameters. Should be any or all of the parameters returned by Format.getWriteParameters().
Throws:
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
See Also:
GridCoverageWriter.write(org.opengis.coverage.grid.GridCoverage, org.opengis.parameter.GeneralParameterValue[])


Copyright © 1996-2014 Geotools. All Rights Reserved.