Skip to content

RS_BandPixelType

Returns the pixel data type of the specified band as a string.

Usage

utf8 RS_BandPixelType(rast: raster)
utf8 RS_BandPixelType(rast: raster, band: int)

Arguments

  • rast (raster): Input raster
  • band (int): Band index (1-based). Defaults to 1 if not specified.

Examples

SELECT RS_BandPixelType(RS_Example());
┌────────────────────────────────┐
│ rs_bandpixeltype(rs_example()) │
│              utf8              │
╞════════════════════════════════╡
│ UNSIGNED_8BITS                 │
└────────────────────────────────┘
SELECT RS_BandPixelType(RS_Example(), 1);
┌─────────────────────────────────────────┐
│ rs_bandpixeltype(rs_example(),Int64(1)) │
│                   utf8                  │
╞═════════════════════════════════════════╡
│ UNSIGNED_8BITS                          │
└─────────────────────────────────────────┘