org.geotools.coverageio.gdal
Class BaseGDALGridCoverage2DReader

Object
  extended by AbstractGridCoverage2DReader
      extended by BaseGridCoverage2DReader
          extended by BaseGDALGridCoverage2DReader
All Implemented Interfaces:
GridCoverage2DReader, GridCoverageReader
Direct Known Subclasses:
AIGReader, DTEDReader, ECWReader, EnviHdrReader, ErdasImgReader, EsriHdrReader, IDRISIReader, JP2ECWReader, JP2KReader, JP2MrSIDReader, MrSIDReader, NITFReader, RPFTOCReader

public abstract class BaseGDALGridCoverage2DReader
extends BaseGridCoverage2DReader
implements GridCoverage2DReader

Base class for GridCoverage data access, leveraging on GDAL Java bindings provided by the ImageIO-Ext project. See ImageIO-Ext project.

Author:
Daniele Romagnoli, GeoSolutions, Simone Giannecchini, GeoSolutions

Field Summary
protected static String DEFAULT_WORLDFILE_EXT
           
 
Fields inherited from class AbstractGridCoverage2DReader
closeMe, coverageFactory, 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
protected BaseGDALGridCoverage2DReader(Object input, Hints hints, String worldFileExtension, ImageReaderSpi formatSpecificSpi)
          Creates a new instance of a BaseGDALGridCoverage2DReader.
 
Method Summary
protected  void setCoverageProperties(ImageReader reader)
          Setting Envelope, GridRange and CRS from the given ImageReader
 
Methods inherited from class BaseGridCoverage2DReader
getCoverageName, getGridCoverageCount, getInfo, getInfo, getInputFile, hasMoreGridCoverages, parsePRJFile, parseWorldFile, read
 
Methods inherited from class AbstractGridCoverage2DReader
createImageCoverage, createImageCoverage, decimationOnReadingControl, dispose, finalize, getCoordinateReferenceSystem, getCoordinateReferenceSystem, getCrs, getCurrentSubname, getDynamicParameters, getDynamicParameters, getGridCoverageNames, getImageLayout, getImageLayout, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getNumOverviews, getNumOverviews, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getOverviewGridEnvelope, getOverviewGridEnvelope, getReadingResolutions, getReadingResolutions, getResolution, getResolutionLevels, getResolutionLevels, getSource, listSubNames, read, setlayout, setLayout, 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, read
 
Methods inherited from interface GridCoverageReader
dispose, getCurrentSubname, getFormat, getGridCoverageCount, getGridCoverageNames, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getSource, hasMoreGridCoverages, listSubNames, skip
 

Field Detail

DEFAULT_WORLDFILE_EXT

protected static final String DEFAULT_WORLDFILE_EXT
See Also:
Constant Field Values
Constructor Detail

BaseGDALGridCoverage2DReader

protected BaseGDALGridCoverage2DReader(Object input,
                                       Hints hints,
                                       String worldFileExtension,
                                       ImageReaderSpi formatSpecificSpi)
                                throws DataSourceException
Creates a new instance of a BaseGDALGridCoverage2DReader. I assume nothing about file extension.

Parameters:
input - Source object for which we want to build a BaseGDALGridCoverage2DReader.
hints - Hints to be used by this reader throughout his life.
worldFileExtension - the specific world file extension of the underlying format
formatSpecificSpi - an instance of a proper ImageReaderSpi.
Throws:
DataSourceException
Method Detail

setCoverageProperties

protected void setCoverageProperties(ImageReader reader)
                              throws IOException
Setting Envelope, GridRange and CRS from the given ImageReader

Specified by:
setCoverageProperties in class BaseGridCoverage2DReader
Parameters:
reader - the ImageReader from which to retrieve metadata (if available) for setting properties
Throws:
IOException


Copyright © 1996-2014 Geotools. All Rights Reserved.