org.geotools.gce.gtopo30
Class GTopo30Reader

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

public final class GTopo30Reader
extends AbstractGridCoverage2DReader
implements GridCoverage2DReader

This class provides a GridCoverageReader for the GTopo30Format.

Author:
Simone Giannecchini, jeichar, mkraemer

Field Summary
 
Fields inherited from class AbstractGridCoverage2DReader
closeMe, coverageFactory, coverageName, crs, gzipped, highestRes, hints, inStream, inStreamSPI, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source
 
Fields inherited from interface GridCoverage2DReader
ELEVATION_DOMAIN, ELEVATION_DOMAIN_MAXIMUM, ELEVATION_DOMAIN_MINIMUM, ELEVATION_DOMAIN_RESOLUTION, FILE_SOURCE_PROPERTY, HAS_ELEVATION_DOMAIN, HAS_TIME_DOMAIN, TIME_DOMAIN, TIME_DOMAIN_MAXIMUM, TIME_DOMAIN_MINIMUM, TIME_DOMAIN_RESOLUTION
 
Constructor Summary
GTopo30Reader(Object source)
          GTopo30Reader constructor.
GTopo30Reader(Object source, Hints hints)
          GTopo30Reader constructor.
 
Method Summary
 Format getFormat()
          Returns the format handled by this GridCoverageReader.
 GridCoverage2D read(GeneralParameterValue[] params)
          Read the current grid coverage from the stream.
 
Methods inherited from class AbstractGridCoverage2DReader
checkName, createImageCoverage, createImageCoverage, createImageCoverage, createImageCoverage, decimationOnReadingControl, decimationOnReadingControl, dispose, finalize, getCoordinateReferenceSystem, getCoordinateReferenceSystem, getCrs, getCurrentSubname, getDynamicParameters, getDynamicParameters, getGridCoverageCount, getGridCoverageNames, getHighestRes, getImageLayout, getImageLayout, getInfo, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getNumOverviews, getNumOverviews, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getOverviewGridEnvelope, getOverviewGridEnvelope, getReadingResolutions, getReadingResolutions, getResolution, getResolutionLevels, getResolutionLevels, getSource, hasMoreGridCoverages, listSubNames, read, setlayout, setLayout, setReadParams, setReadParams, skip
 
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface GridCoverage2DReader
getCoordinateReferenceSystem, getCoordinateReferenceSystem, getDynamicParameters, getDynamicParameters, getImageLayout, getImageLayout, getNumOverviews, getNumOverviews, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getReadingResolutions, getReadingResolutions, getResolutionLevels, getResolutionLevels, read
 
Methods inherited from interface GridCoverageReader
dispose, getCurrentSubname, getGridCoverageCount, getGridCoverageNames, getMetadataNames, getMetadataNames, getMetadataValue, 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()
Description copied from interface: GridCoverageReader
Returns the format handled by this GridCoverageReader.

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 GridCoverage2DReader
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:
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 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-2014 Geotools. All Rights Reserved.