org.geotools.coverageio.gdal.jp2kak
Class JP2KReader

Object
  extended by AbstractGridCoverage2DReader
      extended by BaseGridCoverage2DReader
          extended by BaseGDALGridCoverage2DReader
              extended by JP2KReader
All Implemented Interfaces:
GridCoverage2DReader, 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 BaseGDALGridCoverage2DReader
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
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()
          Returns the format handled by this GridCoverageReader.
 
Methods inherited from class BaseGDALGridCoverage2DReader
setCoverageProperties
 
Methods inherited from class BaseGridCoverage2DReader
getCoverageName, getGridCoverageCount, getInfo, getInfo, getInputFile, hasMoreGridCoverages, parsePRJFile, parseWorldFile, read
 
Methods inherited from class AbstractGridCoverage2DReader
checkName, createImageCoverage, createImageCoverage, createImageCoverage, createImageCoverage, decimationOnReadingControl, decimationOnReadingControl, dispose, finalize, getCoordinateReferenceSystem, getCoordinateReferenceSystem, getCrs, getCurrentSubname, getDynamicParameters, getDynamicParameters, getGridCoverageNames, getHighestRes, 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, setReadParams, skip
 
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface GridCoverageReader
dispose, getCurrentSubname, getGridCoverageCount, getGridCoverageNames, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getSource, hasMoreGridCoverages, listSubNames, read, read, skip
 
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
 

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()
Description copied from interface: GridCoverageReader
Returns the format handled by this GridCoverageReader.

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


Copyright © 1996-2014 Geotools. All Rights Reserved.