Home    |    Concepts   |   API   |   Samples
Concepts > Rasters > Raster API Entities
Raster Bands

A raster dataset contains one or more layers called bands. For example, a color image has three bands (red, green, and blue) while a digital elevation model (DEM) has one band (holding elevation values), and a multispectral image may have many bands.

Each raster band contains the actual cell values, as well as some key properties, such as:

  • Statistics: minimum, maximum, and mean cell values
  • Histogram of cell values
  • A value attribute table (optional additional attribute information about various cell values)
  • Default color map for raster display (optional)

Examples of a 1 band raster are

  • Elevation Data
  • Grayscale aerial imagery
  • Scanned maps/documents

Examples of 3 band raster are

  • Most color TIFFs, IMGS or MrSIDSs
  • Remotely Sensed/Spectral data

An ArcSDE raster has three default bands, which can be removed, deleted, or replaced with new bands. In the Raster Java API, a band in a raster dataset is represented by the SeRasterBand class. The SeRasterAttr object stores band metadata such as number of bands and width of bands, while the actual bands can be retrieved in the form of a SeRasterBand array from SeRaster using the SeRaster.getBands() method.

Prior to retrieving bands from SeRaster, it is necessary to obtain all raster information from the server. This is accomplished by a call to the SeRaster.getInfoById(lastInsertID) method. Consequently, bands can be retrieved by calling the SeRaster.getBands() method.

See also

Top

Top

Top

Top

Top

Top

Send your comments to: Site Administrator | Terms of Use | PRIVACY | Copyright ESRI.