Package com.luciad.format.raster


package com.luciad.format.raster
Provides representations, decoders, and encoders for rasters.

Domain object types

Important notice: the package com.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:
  • 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 decoders ILcdModelDecoder that each read a particular data format:

Model encoders

Models containing rasters and multi-level rasters can be encoded in data formats using the appropriate encoders ILcdModelEncoder:

Lsp Visualization

For visualization in an ILspView you can use TLspRasterLayerBuilder. 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:

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:

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:

Since:
1.5