Package com.luciad.format.raster
Domain object types
Important notice: the packagecom.luciad.imaging
presents a new API
for the modeling of raster data. For new projects, it is recommended to use
this API instead of ILcdRaster
et al.
This package contains a number of fundamental interfaces and classes
to represent rasters of scalar values:
ILcdTile
represents a tile (image), a discrete two-dimensional array of scalar (integer values with an optional color model. Its coordinates are expressed in pixels. The values can be retrieved one at a time, or as AWT images representing rectangular subsets of the tile.
Basic implementations:TLcdByteArrayTile
: a tile whose values are stored as an array of bytes,TLcdShortArrayTile
: a tile whose values are stored as an array of shorts,TLcdIntArrayTile
: a tile whose values are stored as an array of integers,TLcdRenderedImageTile
: a tile whose values are stored as aRenderedImage
.TLcdBufferedTile
: a tile whose values are loaded lazily and cached in a shared buffer, with the help of anILcdTileDecoder
.
ILcdRaster
represents a raster, a regular two-dimensional grid of tiles. It has a position and size in its own raster coordinate system, which is typically the model coordinate system. The raster values can be retrieved one at a time, or as entire tiles. Basic implementation:TLcdRaster
.ILcdMultilevelRaster
represents a raster at increasing levels of detail, each of which is represented by a simple raster. It has a position and size in its own raster coordinate system, which is typically the model coordinate system. Basic implementation:TLcdMultilevelRaster
.
Furthermore, there is an interface to represent rasters in which each value is not a scalar value, but a multi-dimensional vector of values:
ILcdMultivaluedRaster
represents a two-dimensional raster that contains multi-dimensional vectors of values. Just like a scalar raster, it has a position and size in its own raster coordinate system, which is typically the model coordinate system. These vectors or their individual scalar values can be retrieved. Basic implementation:TLcdMultivaluedRaster
.
Model decoders
Instances of the above types are most often created with the help of model decodersILcdModelDecoder
that each read a particular
data format:
TLcdGeoTIFFModelDecoder
decodes GeoTIFF files or georeferenced TIFF files,TLcdTABRasterModelDecoder
decodes TAB files and their associated image files,TLcdTFWRasterModelDecoder
decodes TFW files and their associated TIFF files,TLcdDMEDModelDecoder
decodes DMED files and their associated DTED data sets,TLcdDTEDModelDecoder
decodes invidual DTED files,TLcdDTEDDirectoryModelDecoder
decodes directories containing DTED data sets,TLcdDEMModelDecoder
decodes DEM files,TLcdUSRPModelDecoder
decodes USRP, ASRP, and ADRG files,TLcdCADRGModelDecoder
decodes CADRG files and data sets,TLcdECRGModelDecoder
decodes ECRG files,TLcdNITFModelDecoder
decodes NITF files,- etc...
Model encoders
Models containing rasters and multi-level rasters can be encoded in data formats using the appropriate encodersILcdModelEncoder
:
TLcdGeoTIFFModelEncoder
encodes rasters and multi-level rasters as GeoTIFF files.
Lsp Visualization
For visualization in an ILspView you can useTLspRasterLayerBuilder
. The
layers
support both single and multi-leveled rasters. You can use TLspRasterStyle
to
customize the
visualization.
GXY Visualization
For visualization in an ILcdGXYView you can use some standard raster painters.If the rasters may or may not be defined in the same reference as the view (the model reference of the raster model is not necessarily equal to the world reference of the view), there are two painters that can perform warping if required:
TLcdRasterPainter
paintsILcdRaster
instances,TLcdMultilevelRasterPainter
paintsILcdMultilevelRaster
instances.
If the rasters are known to be defined in the same reference as the view (the model reference of the raster model is equal to the world reference of the view), there are two painters that can paint efficiently without warping:
TLcdNoWarpRasterPainter
paintsILcdRaster
instances,TLcdNoWarpMultilevelRasterPainter
paintsILcdMultilevelRaster
instances.
If the rasters are supposed to be defined in different references as the view (the model reference of the raster model is assumed to be different from the world reference of the view), there are two painters that can paint the rasters, warping them as necessary:
TLcdWarpRasterPainter
paintsILcdRaster
instances,TLcdWarpMultilevelRasterPainter
paintsILcdMultilevelRaster
instances.
- Since:
- 1.5
-
ClassDescriptionBase class for ILcdRaster implementations.This abstract class provides a basis for implementing the
ILcdRasterPainter
interface.This class is an abstract basis for implementingILcdTileDecoder
.An ILcdColorModelFactory can create aColorModel
.Important notice: the packagecom.luciad.imaging
presents a new API for the modeling of raster data.This interface provides a method to draw icons for multi-dimensional integer values.This interface represents a bounded raster of multi-dimensional values.An icon that is based on a set of parameters.Important notice: the packagecom.luciad.imaging
presents a new API for the modeling of raster data.AnILcdRasterPainter
provides additional common methods overILcdGXYPainter
, that are typically useful for painting rasters.This interface makes it possible to convert between raster and data values.This interface defines an ILcdTile which is further subdivided into subtiles.Important notice: the packagecom.luciad.imaging
presents a new API for the modeling of raster data.This interface contains methods to decode a sub-tile from a whole tile (image) contained in a file or URL.This interface provides information about anILcdTile
: size, type, color model, and data.TLcdAllInMemoryRasterPainter
implements anILcdGXYPainter
for anILcdRaster
.This model decoder decodes ESRI ArcInfo ASCII Grid format (*.asc, *.grd) raster files.This model decoder decodes Band Interleaved by Line (BIL) raster files.ATLcdRasterModelDescriptor
for models containing BIL data.ThisILcdTileDecoder
decodes BIL (Band Interleaved by Line) tiles.ThisILcdTileDecoder
decodes images in BMP format.This implementation ofILcdTile
provides lazy decoding of image data that can be retrieved from a file or from a URL.This basic implementation ofILcdTile
retrieves its pixel values from a given array of bytes.ThisILcdTile
represents a specified rectangle of a given tile as a new tile.Utility class containing methods to createColorModel
instances.This model decoder decodes elevation rasters in the DEM format (USGS Digital Elevation Model).ThisTLcdRasterModelDescriptor
contains additional information about DEM data.TLcdDTEDCellDecoder
is anILcdTileDecoder
that decodes a DEM tiles.This model decoder decodes DMED (Digital Mean Elevation Data) files and any available corresponding DTED (Digital Terrain Elevation Data) files.ThisTLcdRasterModelDescriptor
contains additional information about DMED data.ThisILcdTileDecoder
decodes DMED cells on the integer grid of 1° by 1°.This class represents a DTED Accuracy Subregion Description.ThisTLcdRasterModelDescriptor
contains additional information about a DTED cell.ThisILcdColorModelFactory
createsIndexColorModel
instances for use with DTED data.This model decoder decodes directories containing DTED (Digital Terrain Elevation Data) files.This model decoder decodes individual DTED (Digital Terrain Elevation Data) files.ATLcdRasterModelDescriptor
for models containing DTED data.ThisILcdTile
contains additional information about the DTED cell that it represents.ThisILcdTileDecoder
decodes 1° by 1° DTED cells of any level (0, 1, or 2).This class contains static utility methods related to elevation rasters.This model decoder decodes the raw ETOPO1, ETOPO2, ETOPO2v2, and ETOPO5 data sets.ThisTLcdRasterModelDescriptor
contains additional information about ETOPO data.This class describes a TIFF or GeoTIFF tag and the corresponding field.ThisILcdTileDecoder
decodes GeoTIFF images and TIFF images in general.This model decoder decodes GeoTIFF files, or more generally, georeferenced TIFF files.ATLcdRasterModelDescriptor
for models containing GeoTIFF data.ThisILcdModelEncoder
encodes image or raster models into GeoTIFF files.ThisILcdTileDecoder
can decode GIF images.This class implements an ILcdColorModelFactory for creatingIndexColorModel
objects whose entries represent a color gradient between 2 colors.TLcdImageDecoder
is anILcdTileDecoder
for images supported by the platform's native implementation of the Toolkit, i.e.,Toolkit.getDefaultToolkit()
.This class implements an ILcdColorModelFactory for creating generalIndexColorModel
objects.This basic implementation ofILcdTile
retrieves its pixel values from a given array of integers.This class provides an implementation ofILcdRaster
that interpolates between the values of its tiles.ATLcdRasterModelDescriptor
for models containing JAI data.This model decoder decodesjai
files.ThisILcdColorModelFactory
createsIndexColorModel
instances with smoothly varying colors.A raster value converter that uses a linear transformation to convert between raster and data values.ATLcdMultilevelRasterModelDescriptor
for models containing GeoTIFF data.ATLcdMultilevelRasterModelDescriptor
for models containing JAI data.Important notice: the packagecom.luciad.imaging
presents a new API for the modeling of raster data.ThisILcdModelDescriptor
describes a model containingILcdMultilevelRaster
objects.Important notice: the packagecom.luciad.imaging
presents a new API for the modeling of raster data.ATLcdMultilevelRasterModelDescriptor
for models containing RST data.ThisILcdMultivaluedRaster
combines the values from a list of simple rasters into vectors.ThisILcdModelDescriptor
is used for models that contain aTLcdMultivaluedRaster
objects.ThisILcdGXYPainter
paintsILcdMultivaluedRaster
objects from models that have aTLcdMultivaluedRasterModelDescriptor
.ThisILcdGXYPainter
can paintILcdMultilevelRaster
instances, applying only a scaling transformation.ThisILcdGXYPainter
can paintILcdRaster
instances, applying only a scaling transformation.ThisILcdParameterizedIcon
displays numbers, based on the first value in the array of parameters.This class is anILcdTileDecoder
for PNM (Portable aNyMap) images, being PBM (Portable BitMap), PGM (Portable GrayMap), and PPM (Portable PixMap).Deprecated.Important notice: the packagecom.luciad.imaging
presents a new API for the modeling of raster data.This model decoder decodesrst
files.ThisILcdModelDescriptor
describes a model containingILcdRaster
objects.ThisILcdModelXYZWorldTransformation
implementation takes the values of anILcdRaster
into account when transforming model Z coordinates.ThisILcdModelZWorldTransformation
implementation takes the values ofILcdRaster
into account when transforming the model Z to world Z and back.Important notice: the packagecom.luciad.imaging
presents a new API for the modeling of raster data.This class creates model bounds for rasters, based on a given model reference and on additional information about the raster's position.ThisILcdTile
provides a simple wrapper for aRenderedImage
.ATLcdRasterModelDescriptor
for models containing RST data.This ILcdRasterPainter paints multilevel elevation rasters as translucent rasters with dark or light shading based on the position of the sun.This ILcdRasterPainter paints elevation rasters as translucent rasters with dark or light shading based on the position of the sun.This class decodes shaded values based on the values returned by anotherILcdTileDecoder
.Important notice: the packagecom.luciad.imaging
presents a new API for the modeling of raster data.This class provides a specialized implementation ofILcdRaster
, containing only a single tile.This model decoder decodes MapInfo TAB Raster files.This model decoder decodes TIFF World files (tfw
files), as well as JPEG World files (jgw
files), BMP World files (bpw
files) and PNG World files (pgw
).Deprecated.ThisILcdTileDecoder
decodes uncompressed tiles of bytes, shorts, or integers.This class provides an implementation of ILcdTileInfo.ThisILcdGXYPainter
can paintILcdMultilevelRaster
instances, warping them between different coordinate systems as required.ThisILcdGXYPainter
can paintILcdRaster
instances, warping them between different coordinate systems as required.
TLcdPNMImageDecoder
.