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 selected '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 'Rcpp' exposed class along with 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 overlay to identify and count unique pixel combinations across multiple input layers; raster calculation by evaluating any R expression on a stack of layers with pixel coordinates available as variables; 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.4.0
Depends: R (≥ 4.2.0)
Imports: graphics, grDevices, methods, Rcpp (≥ 1.0.7), stats, tools, utils
LinkingTo: Rcpp
Suggests: knitr, rmarkdown, scales, testthat (≥ 3.0.0), xml2
Published: 2023-08-29
Author: Chris Toney [aut, cre], 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), Peter Dimov [ctb, cph] (Boost combine hashes method)
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.3.0, built against GEOS), PROJ (>= 4.8.0)
Citation: gdalraster citation info
Materials: README NEWS
In views: Spatial
CRAN checks: gdalraster results


Reference manual: gdalraster.pdf
Vignettes: Raster API Tutorial


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

Reverse dependencies:

Reverse imports: FIESTA, FIESTAutils


Please use the canonical form to link to this page.