Package com.luciad.format.raster
Class TLcdDEMTileDecoder
java.lang.Object
com.luciad.format.raster.ALcdTileDecoder
com.luciad.format.raster.TLcdDEMTileDecoder
- All Implemented Interfaces:
ILcdTileDecoder,ILcdInputStreamFactoryCapable
TLcdDTEDCellDecoder is an ILcdTileDecoder that
decodes a DEM tiles.
This class is thread-safe.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe tile value for unknown elevations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ILcdTileInforeadTileFromStream(InputStream aInputStream, int aImageIndex, int aSubTileWidth, int aSubTileHeight, int aSubTileRowIndex, int aSubTileColumnIndex, ILcdBuffer aBuffer) Reads a sub-tile from an input stream.Methods inherited from class com.luciad.format.raster.ALcdTileDecoder
getInputStreamFactory, isTraceOn, readTile, readTile, setClassTraceOn, setInputStreamFactory, setTraceOnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.format.raster.ILcdTileDecoder
readTile, readTile
-
Field Details
-
UNKNOWN_ELEVATION
public static final int UNKNOWN_ELEVATIONThe tile value for unknown elevations.- See Also:
-
-
Constructor Details
-
TLcdDEMTileDecoder
public TLcdDEMTileDecoder()
-
-
Method Details
-
readTileFromStream
protected ILcdTileInfo readTileFromStream(InputStream aInputStream, int aImageIndex, int aSubTileWidth, int aSubTileHeight, int aSubTileRowIndex, int aSubTileColumnIndex, ILcdBuffer aBuffer) throws TLcdCodecException Description copied from class:ALcdTileDecoderReads a sub-tile from an input stream.- Specified by:
readTileFromStreamin classALcdTileDecoder- Parameters:
aInputStream- the input stream from which the tile data can be read.aImageIndex- the index of the tile in the given input stream (if applicable).aSubTileWidth- the width of the sub-tiles, expressed in pixels.aSubTileHeight- the height of the sub-tiles, expressed in pixels.aSubTileRowIndex- the row number of the sub-tile to be decoded.aSubTileColumnIndex- the column number of the sub-tile to be decoded.aBuffer- the buffer in which the decoded bytes will be stored.- Returns:
ILcdTileInfoinformation about the decoded tile.- Throws:
TLcdCodecException- in case of decoding problems.
-