org.geotools.gce.gtopo30
Class GTopo30Reader

Object
  extended by AbstractGridCoverage2DReader
      extended by GTopo30Reader
All Implemented Interfaces:
GridCoverageReader

public final class GTopo30Reader
extends AbstractGridCoverage2DReader
implements GridCoverageReader

This class provides a GridCoverageReader for the GTopo30Format.

Author:
Simone Giannecchini, jeichar, mkraemer
Module:

Field Summary
 
Fields inherited from class AbstractGridCoverage2DReader
closeMe, coverageFactory, coverageName, crs, demColors, EPS, gzipped, highestRes, hints, inStream, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source
 
Constructor Summary
GTopo30Reader(Object source)
          GTopo30Reader constructor.
GTopo30Reader(Object source, Hints hints)
          GTopo30Reader constructor.
 
Method Summary
 Format getFormat()
           
 GridCoverage2D read(GeneralParameterValue[] params)
          Read the current grid coverage from the stream.
 
Methods inherited from class AbstractGridCoverage2DReader
createImageCoverage, createImageCoverage, decimationOnReadingControl, dispose, finalize, getCrs, getCurrentSubname, getGridCoverageCount, getInfo, getMetadataNames, getMetadataValue, getOriginalEnvelope, getOriginalGridRange, getOriginalGridToWorld, getResolution, getSource, hasMoreGridCoverages, listSubNames, setReadParams, skip
 
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface GridCoverageReader
dispose, getCurrentSubname, getMetadataNames, getMetadataValue, getSource, hasMoreGridCoverages, listSubNames, skip
 

Constructor Detail

GTopo30Reader

public GTopo30Reader(Object source)
              throws IOException
GTopo30Reader constructor.

Parameters:
source - The source object (can be a File, an URL or a String representing a File or an URL).
Throws:
MalformedURLException - if the URL does not correspond to one of the GTopo30 files
IOException
DataSourceException - if the given url points to an unrecognized file
IllegalArgumentException - DOCUMENT ME!

GTopo30Reader

public GTopo30Reader(Object source,
                     Hints hints)
              throws IOException
GTopo30Reader constructor.

Parameters:
source - The source object (can be a File, an URL or a String representing a File or an URL).
Throws:
MalformedURLException - if the URL does not correspond to one of the GTopo30 files
IOException
DataSourceException - if the given url points to an unrecognized file
IllegalArgumentException - DOCUMENT ME!
Method Detail

getFormat

public Format getFormat()
Specified by:
getFormat in interface GridCoverageReader
See Also:
GridCoverageReader.getFormat()

read

public GridCoverage2D read(GeneralParameterValue[] params)
                    throws IllegalArgumentException,
                           IOException
Description copied from class: AbstractGridCoverage2DReader
Read the current grid coverage from the stream.

Example:


 
The method AbstractGridCoverage2DReader.hasMoreGridCoverages() should be invoked first in order to verify that a coverage is available.

Specified by:
read in interface GridCoverageReader
Specified by:
read in class AbstractGridCoverage2DReader
Parameters:
params - Optional parameters matching Format.getReadParameters().
Returns:
a grid coverage from the input source.
Throws:
IOException - if a read operation failed for some other input/output reason, including FileNotFoundException if no file with the given name can be found, or IIOException if an error was thrown by the underlying image library.
IllegalArgumentException
See Also:
GridCoverageReader.read(org.opengis.parameter.GeneralParameterValue[])


Copyright © 1996-2010 Geotools. All Rights Reserved.