org.geotools.coverageio.gdal.jp2kak
Class JP2KReader

Object
  extended by AbstractGridCoverage2DReader
      extended by BaseGridCoverage2DReader
          extended by BaseGDALGridCoverage2DReader
              extended by JP2KReader
All Implemented Interfaces:
GridCoverageReader

public final class JP2KReader
extends BaseGDALGridCoverage2DReader
implements GridCoverageReader

This class can read a JP2K data source and create a GridCoverage2D from the data.

Since:
2.5.x
Author:
Daniele Romagnoli, GeoSolutions., Simone Giannecchini (simboss), GeoSolutions

Field Summary
 
Fields inherited from class AbstractGridCoverage2DReader
closeMe, coverageFactory, crs, demColors, EPS, gzipped, highestRes, hints, inStream, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source
 
Constructor Summary
JP2KReader(Object input)
          Creates a new instance of a JP2KReader.
JP2KReader(Object input, Hints hints)
          Creates a new instance of a JP2KReader basing the decision on whether the file is compressed or not.
 
Method Summary
 Format getFormat()
           
 
Methods inherited from class BaseGDALGridCoverage2DReader
setCoverageProperties
 
Methods inherited from class BaseGridCoverage2DReader
getCoverageCRS, getCoverageEnvelope, getCoverageGridRange, getCoverageName, getGridCoverageCount, getInfo, getInfo, getInputFile, hasMoreGridCoverages, parsePRJFile, parseWorldFile, read, setCoverageCRS, setCoverageEnvelope, setCoverageGridRange
 
Methods inherited from class AbstractGridCoverage2DReader
createImageCoverage, createImageCoverage, decimationOnReadingControl, dispose, finalize, getCrs, getCurrentSubname, getMetadataNames, getMetadataValue, getOriginalEnvelope, getOriginalGridRange, getOriginalGridToWorld, getResolution, getSource, 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, read, skip
 

Constructor Detail

JP2KReader

public JP2KReader(Object input)
           throws DataSourceException
Creates a new instance of a JP2KReader. I assume nothing about file extension.

Parameters:
input - Source object for which we want to build an JP2KReader.
Throws:
DataSourceException

JP2KReader

public JP2KReader(Object input,
                  Hints hints)
           throws DataSourceException
Creates a new instance of a JP2KReader basing the decision on whether the file is compressed or not. I assume nothing about file extension.

Parameters:
input - Source object for which we want to build an JP2KReader.
hints - Hints to be used by this reader throughout his life.
Throws:
DataSourceException
Method Detail

getFormat

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


Copyright © 1996-2009 Geotools. All Rights Reserved.