Name

ST_BandPixelType — Gibt den Pixeltyp des angegebenen Bandes aus. Wenn der Parameter "bandnum" nicht angegeben ist, wird das 1ste Band angenommen.

Übersicht

text ST_BandPixelType(raster rast, integer bandnum=1);

Description

Gibt eine Beschreibung des Datentyps und der Größe der Zellwerte in dem gegebenen Band zurück.

Im Folgenden die 11 unterstützten Pixeltypen

  • 1BB - 1-Bit Boolean

  • 2BUI - 2-Bit vorzeichenlose Ganzzahl

  • 4BUI - 4-Bit vorzeichenlose Ganzzahl

  • 8BSI - 8-Bit Ganzzahl

  • 8BUI - 8-Bit vorzeichenlose Ganzzahl

  • 16BSI - 16-Bit Ganzzahl

  • 16BUI - 16-bit vorzeichenlose Ganzzahl

  • 32BSI - 32-Bit Ganzzahl

  • 32BUI - 32-Bit vorzeichenlose Ganzzahl

  • 32BF - 32-Bit Float

  • 64BF - 64-Bit Float

Beispiele

Code
SELECT ST_BandPixelType(rast, 1) As btype1,
    ST_BandPixelType(rast, 2) As btype2, ST_BandPixelType(rast, 3) As btype3
FROM dummy_rast
WHERE rid = 2;
Ausgabe von Rastern
btype1 | btype2 | btype3
--------+--------+--------
 8BUI   | 8BUI   | 8BUI

Siehe auch

ST_NumBands