Skip to main content
Returns the datatype of each pixel in the given band of the given raster in string format. The band parameter is 1-indexed. If no band is specified, band 1 is assumed.
If the given band index does not exist in the given raster, RS_BandPixelType throws an IllegalArgumentException.
Following are the possible values returned by RS_BandPixelType:
  1. REAL_64BITS - For Double values
  2. REAL_32BITS - For Float values
  3. SIGNED_32BITS - For Integer values
  4. SIGNED_16BITS - For Short values
  5. UNSIGNED_16BITS - For unsigned Short values
  6. UNSIGNED_8BITS - For Byte values

Signatures

Parameters

rast
Raster
required
The rast value.
band
Integer
default:"1"
required
The band index.

Return type

A string representation.

Examples