Learn R Programming

gdalraster (version 1.11.1)

displayRAT: Display a GDAL Raster Attribute Table

Description

displayRAT() generates a presentation table. Colors are shown if the Raster Attribute Table contains RGB columns. This function requires package gt.

Usage

displayRAT(tbl, title = "Raster Attribute Table")

Value

An object of class "gt_tbl" (i.e., a table created with gt::gt()).

Arguments

tbl

A data frame formatted as a GDAL RAT (e.g., as returned by buildRAT() or GDALRaster$getDefaultRAT()).

title

Character string to be used in the table title.

See Also

buildRAT(), GDALRaster$getDefaultRAT()

vignette("raster-attribute-tables")

Examples

Run this code
# see examples for `buildRAT()`

Run the code above in your browser using DataLab