Project: QGIS

Version: 3.30

Feature: Raster Attribute Tables (RAT) Suppport

QGIS now includes extensive support for Raster Attribute Tables (RATs).

These updates provide a new RAT interface within the QGIS API, and support is provided for RATs managed by raster data providers (GDAL), as well as for generic value attribute table (VAT) files, provided that they are stored in an auxiliary DBF sidecar file.

Much of the functionality from the Python RAT Plugin was ported into QGIS to provide native support for RATs, and a new set of GUI operations affords users the following advanced functionalities:

  • Automatic raster styling: If a RAT is available when adding a raster to the project and includes style information, QGIS will apply the relevant styles to the raster layer by default. Automatic loading works for both embedded RATs and sidecar VAT.DBF with same basename of the raster.
  • RAT reclassification: Reclassification of a raster can be performed by selecting a different column
  • RAT Identify: Values from the RAT row corresponding to the relevant pixel value are shown in the identify Map Tool
  • RAT properties: A new "Attribute Table" tab is available from the raster layers property window
  • RAT editing: RATs offer basic editing capabilities
  • RAT creation from current classification: RATs can be created from existing paletted or singleband pseudocolor styles

A gallery of these functionalities in action is available on GitHub

This feature was funded by NOAA OCS Hydrography

This feature was developed by Alessandro Pasotti