org.geotools.arcsde.raster.gce
Class ArcSDEGridCoverage2DReaderJAI

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

public final class ArcSDEGridCoverage2DReaderJAI
extends AbstractGridCoverage2DReader
implements GridCoverage2DReader

Since:
2.5.4
Author:
Gabriel Roldan (OpenGeo)

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
ArcSDEGridCoverage2DReaderJAI(ArcSDERasterFormat parent, RasterReaderFactory rasterReaderFactory, RasterDatasetInfo rasterInfo, Hints hints)
           
 
Method Summary
 Format getFormat()
          Returns the format handled by this GridCoverageReader.
 ServiceInfo getInfo()
          Information about this source.
 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, 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

ArcSDEGridCoverage2DReaderJAI

public ArcSDEGridCoverage2DReaderJAI(ArcSDERasterFormat parent,
                                     RasterReaderFactory rasterReaderFactory,
                                     RasterDatasetInfo rasterInfo,
                                     Hints hints)
                              throws IOException
Throws:
IOException
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()

getInfo

public ServiceInfo getInfo()
Description copied from class: AbstractGridCoverage2DReader
Information about this source.

Subclasses should provide additional format specific information.

Overrides:
getInfo in class AbstractGridCoverage2DReader
Returns:
ServiceInfo describing getSource().

read

public GridCoverage2D read(GeneralParameterValue[] params)
                    throws 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 new grid coverage from the input source, or null if the requested envelope is outside the data bounds
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.
See Also:
GridCoverageReader.read(GeneralParameterValue[])


Copyright © 1996-2014 Geotools. All Rights Reserved.