gdalraster: Bindings to the 'Geospatial Data Abstraction Library' Raster API

Interface to the Raster API of the 'Geospatial Data Abstraction Library' ('GDAL') supporting manual creation of uninitialized datasets, creation from existing raster as template, low level I/O, configuration of virtual raster (VRT), coordinate transformation, and access to 'gdalwarp' for reprojection. Includes several 'GDAL' algorithms and functions for working with spatial reference systems. Calling signatures resemble the native C, C++ and Python APIs provided by the 'GDAL' project (<>). Bindings are implemented via exposed C++ class encapsulating a 'GDALDataset' and its associated 'GDALRasterBand' objects, plus several stand-alone functions. Additional functionality includes: class 'RunningStats' for efficient summary statistics on large data streams; class 'CmbTable' for counting unique combinations of integers with a hash table; raster 'combine()' to identify and count unique pixel combinations across multiple input layers; raster 'calc()' to evaluate an R expression on a stack of layers with pixel coordinates available as variables in the expression; and raster display using base 'graphics'. 'gdalraster' may be suitable for applications that primarily need low-level I/O or prefer a direct 'GDAL' API. The additional functionality is somewhat aimed at thematic data analysis but may have other utility.

Version: 1.8.0
Depends: R (≥ 4.2.0)
Imports: graphics, grDevices, methods, Rcpp (≥ 1.0.7), stats, tools, utils, xml2
LinkingTo: Rcpp
Suggests: gt, knitr, rmarkdown, scales, testthat (≥ 3.0.0)
Published: 2024-01-27
Author: Chris Toney [aut, cre] (R interface/additional functionality), Frank Warmerdam [ctb, cph] (GDAL API documentation; src/progress_r.cpp from gdal/port/cpl_progress.cpp), Even Rouault [ctb, cph] (GDAL API documentation), Marius Appel [ctb, cph] ( based on, Daniel James [ctb, cph] (Boost combine hashes method in src/cmb_table.h), Peter Dimov [ctb, cph] (Boost combine hashes method in src/cmb_table.h)
Maintainer: Chris Toney <chris.toney at>
License: MIT + file LICENSE
Copyright: See file inst/COPYRIGHTS for details.
gdalraster copyright details
NeedsCompilation: yes
SystemRequirements: GDAL (>= 2.4.0), PROJ, libxml2
Citation: gdalraster citation info
Materials: README NEWS
In views: Spatial
CRAN checks: gdalraster results


Reference manual: gdalraster.pdf
Vignettes: GDAL Config Quick Reference
Raster API Tutorial
Raster Attribute Tables


Package source: gdalraster_1.8.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): gdalraster_1.8.0.tgz, r-oldrel (arm64): gdalraster_1.8.0.tgz, r-release (x86_64): gdalraster_1.8.0.tgz
Old sources: gdalraster archive

Reverse dependencies:

Reverse imports: FIESTA, FIESTAutils
Reverse suggests: ursa


Please use the canonical form to link to this page.