org.geotools.gce.gtopo30
Class GTopo30Format

Object
  extended by AbstractGridFormat
      extended by GTopo30Format
All Implemented Interfaces:
Format

public final class GTopo30Format
extends AbstractGridFormat
implements Format

Provides basic information about the GTOPO30 format IO.

Author:
Simone Giannecchini, mkraemer

Field Summary
 
Fields inherited from class AbstractGridFormat
BACKGROUND_COLOR, DECIMATION_POLICY, ELEVATION, GEOTOOLS_WRITE_PARAMS, INPUT_TRANSPARENT_COLOR, mInfo, OVERVIEW_POLICY, PROGRESS_LISTENER, READ_GRIDGEOMETRY2D, readParameters, SUGGESTED_TILE_SIZE, TILE_SIZE_SEPARATOR, TIME, USE_JAI_IMAGEREAD, writeParameters
 
Constructor Summary
GTopo30Format()
          Creates an instance and sets the metadata.
 
Method Summary
 boolean accepts(Object o, Hints hints)
          Checks if the GTopo30DataSource supports a given file
 GeoToolsWriteParams getDefaultImageIOWriteParameters()
          Always returns null since for the moment there are no GeoToolsWriteParams availaible for this format.
 GTopo30Reader getReader(Object o)
          Returns a reader object which you can use to read GridCoverages from a given source
 GTopo30Reader getReader(Object o, Hints hints)
          Returns a reader object which you can use to read GridCoverages from a given source
 GridCoverageWriter getWriter(Object destination)
          Returns a writer object which you can use to write GridCoverages to a given destination.
 GridCoverageWriter getWriter(Object destination, Hints hints)
          Returns a writer object which you can use to write GridCoverages to a given destination.
 
Methods inherited from class AbstractGridFormat
accepts, equals, getDefaultCRS, getDescription, getDocURL, getName, getReadParameters, getVendor, getVersion, getWriteParameters
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Format
getDescription, getDocURL, getName, getReadParameters, getVendor, getVersion, getWriteParameters
 

Constructor Detail

GTopo30Format

public GTopo30Format()
Creates an instance and sets the metadata.

Method Detail

getReader

public GTopo30Reader getReader(Object o)
Returns a reader object which you can use to read GridCoverages from a given source

Specified by:
getReader in class AbstractGridFormat
Parameters:
o - the the source object. This can be a File, an URL or a String (representing a filename or an URL)
Returns:
a GridCoverageReader object or null if the source object could not be accessed.

getWriter

public GridCoverageWriter getWriter(Object destination)
Returns a writer object which you can use to write GridCoverages to a given destination.

Specified by:
getWriter in class AbstractGridFormat
Parameters:
destination - The destination object
Returns:
a GridCoverageWriter object

getWriter

public GridCoverageWriter getWriter(Object destination,
                                    Hints hints)
Returns a writer object which you can use to write GridCoverages to a given destination.

Specified by:
getWriter in class AbstractGridFormat
Parameters:
destination - The destination object
hints - Hints to control the internal machinery.
Returns:
a GridCoverageWriter object
Throws:
DataSourceException

accepts

public boolean accepts(Object o,
                       Hints hints)
Checks if the GTopo30DataSource supports a given file

Specified by:
accepts in class AbstractGridFormat
Parameters:
o - the source object to test for compatibility with this format. This can be a File, an URL or a String (representing a filename or an URL)
hints - Hints to control the accepts internal machinery.
Returns:
if the source object is compatible

getReader

public GTopo30Reader getReader(Object o,
                               Hints hints)
Returns a reader object which you can use to read GridCoverages from a given source

Specified by:
getReader in class AbstractGridFormat
Parameters:
o - the the source object. This can be a File, an URL or a String (representing a filename or an URL)
hints - The Hints to use when trying to instantiate this reader.
Returns:
a GridCoverageReader object or null if the source object could not be accessed.

getDefaultImageIOWriteParameters

public GeoToolsWriteParams getDefaultImageIOWriteParameters()
Always returns null since for the moment there are no GeoToolsWriteParams availaible for this format.

Specified by:
getDefaultImageIOWriteParameters in class AbstractGridFormat
Returns:
always null.


Copyright © 1996-2014 Geotools. All Rights Reserved.