|Home | Concepts | API | Samples|
|Concepts > Rasters > Raster API Entities|
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:
Examples of a 1 band raster are
Examples of 3 band raster are
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.
|Send your comments to: Site Administrator |
Copyright © ESRI.