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

Interface to the Raster API of the 'Geospatial Data Abstraction Library' ('GDAL', <>). Bindings are implemented in an exposed C++ class encapsulating a 'GDALDataset' and its raster band objects, along with several stand-alone functions. These support manual creation of uninitialized datasets, creation from existing raster as template, read/set dataset parameters, low level I/O, color tables, raster attribute tables, virtual raster (VRT), and 'gdalwarp' wrapper for reprojection and mosaicing. Includes 'GDAL' algorithms ('dem_proc()', 'polygonize()', 'rasterize()', etc.), and functions for coordinate transformation and spatial reference systems. Calling signatures resemble the native C, C++ and Python APIs provided by the 'GDAL' project. Includes raster 'calc()' to evaluate a given R expression on a layer or stack of layers, with pixel x/y available as variables in the expression; and raster 'combine()' to identify and count unique pixel combinations across multiple input layers, with optional output of the pixel-level combination IDs. Provides raster display using base 'graphics'. Bindings to a subset of the 'OGR' API are also included for managing vector data sources. Bindings to a subset of the Virtual Systems Interface ('VSI') are also included to support operations on 'GDAL' virtual file systems. These are general utility functions that abstract file system operations on URLs, cloud storage services, 'Zip'/'GZip'/'7z'/'RAR' archives, and in-memory files. 'gdalraster' may be useful in applications that need scalable, low-level I/O, or prefer a direct 'GDAL' API.

Version: 1.11.1
Depends: R (≥ 4.2.0)
Imports: bit64, graphics, grDevices, methods, Rcpp (≥ 1.0.7), stats, tools, utils, xml2
LinkingTo: Rcpp, RcppInt64
Suggests: gt, knitr, rmarkdown, scales, testthat (≥ 3.0.0)
Published: 2024-06-13
Author: Chris Toney [aut, cre] (R interface/additional functionality), Michael D. Sumner [ctb], 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 (>= 3.1.0, built against GEOS), 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.11.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): gdalraster_1.11.0.tgz, r-oldrel (arm64): gdalraster_1.11.0.tgz, r-release (x86_64): gdalraster_1.11.0.tgz, r-oldrel (x86_64): gdalraster_1.11.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.