Class TLcdGeoTIFFImageDecoder

java.lang.Object
com.luciad.format.raster.TLcdGeoTIFFImageDecoder
All Implemented Interfaces:
ILcdTileDecoder
Direct Known Subclasses:
TLcdTIFFImageDecoder

public class TLcdGeoTIFFImageDecoder extends Object implements ILcdTileDecoder
This ILcdTileDecoder decodes GeoTIFF images and TIFF images in general. Its implementation is based on the Java Advanced Imaging library (JAI), which supports most storage and compression schemes.

This class is thread-safe.

  • Constructor Details

    • TLcdGeoTIFFImageDecoder

      public TLcdGeoTIFFImageDecoder()
  • Method Details

    • setClassTraceOn

      public static void setClassTraceOn(boolean aClassTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for all instances of this class. If the argument is true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
      Parameters:
      aClassTraceOn - if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
    • setTraceOn

      public void setTraceOn(boolean aTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for this class instance. Calling this method with either true or false as argument automatically turns off tracing for all other class instances for which setTraceOn has not been called. If the argument is false then only the informative, warning and error log messages are recorded.
      Parameters:
      aTraceOn - if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
    • isTraceOn

      public boolean isTraceOn()
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Returns true if tracing is enabled for this class.
      Returns:
      true if tracing is enabled for this class, false otherwise.
    • readTileFromStream

      protected ILcdTileInfo readTileFromStream(com.sun.media.jai.codec.SeekableStream aStream, int aImageIndex, int aSubTileWidth, int aSubTileHeight, int aRowIndex, int aColumnIndex, ILcdBuffer aBuffer) throws TLcdCodecException
      Throws:
      TLcdCodecException
    • readTile

      public ILcdTileInfo readTile(URL aURL, int aImageIndex, int aSubTileWidth, int aSubTileHeight, int aRowIndex, int aColumnIndex, ILcdBuffer aBuffer) throws TLcdCodecException
      Description copied from interface: ILcdTileDecoder
      Reads a sub-tile from a URL.
      Specified by:
      readTile in interface ILcdTileDecoder
      Parameters:
      aURL - the URL containing the tile.
      aImageIndex - the index of the tile in the given URL (if applicable).
      aSubTileWidth - the width of the sub-tiles, expressed in pixels.
      aSubTileHeight - the height of the sub-tiles, expressed in pixels.
      aRowIndex - the row number of the sub-tile to be decoded.
      aColumnIndex - the column number of the sub-tile to be decoded.
      aBuffer - the buffer in which the decoded bytes will be stored.
      Returns:
      ILcdTileInfo information about the decoded tile.
      Throws:
      TLcdCodecException - in case of decoding problems.
    • readTile

      public ILcdTileInfo readTile(String aFileName, int aImageIndex, int aSubTileWidth, int aSubTileHeight, int aRowIndex, int aColumnIndex, ILcdBuffer aBuffer) throws TLcdCodecException
      Description copied from interface: ILcdTileDecoder
      Reads a sub-tile from a file.
      Specified by:
      readTile in interface ILcdTileDecoder
      Parameters:
      aFileName - the name of the file containing the tile.
      aImageIndex - the index of the tile in the given file (if applicable).
      aSubTileWidth - the width of the sub-tiles, expressed in pixels.
      aSubTileHeight - the height of the sub-tiles, expressed in pixels.
      aRowIndex - the row number of the sub-tile to be decoded.
      aColumnIndex - the column number of the sub-tile to be decoded.
      aBuffer - the buffer in which the decoded bytes will be stored.
      Returns:
      ILcdTileInfo information about the decoded tile.
      Throws:
      TLcdCodecException - in case of decoding problems.