Skip to content

gdalraster

Bindings to 'GDAL'

v2.4.0 · Dec 18, 2025 · MIT + file LICENSE

Description

API bindings to the Geospatial Data Abstraction Library ('GDAL', <https://gdal.org>). Implements the 'GDAL' Raster and Vector Data Models. Bindings are implemented with 'Rcpp' modules. Exposed C++ classes and stand-alone functions wrap much of the 'GDAL' API and provide additional functionality. Calling signatures resemble the native C, C++ and Python APIs provided by the 'GDAL' project. Class 'GDALRaster' encapsulates a 'GDALDataset' and its raster band objects. Class 'GDALVector' encapsulates an 'OGRLayer' and the 'GDALDataset' that contains it. Initial bindings are provided to the unified 'gdal' command line interface added in 'GDAL' 3.11. C++ stand-alone functions provide bindings to most 'GDAL' "traditional" raster and vector utilities, including 'OGR' facilities for vector geoprocessing, several algorithms, as well as the Geometry API ('GEOS' via 'GDAL' headers), the Spatial Reference Systems API, and methods for coordinate transformation. Bindings to the Virtual Systems Interface ('VSI') API implement standard file system operations abstracted for URLs, cloud storage services, 'Zip'/'GZip'/'7z'/'RAR', in-memory files, as well as regular local file systems. This provides a single interface for operating on file system objects that works the same for any storage backend. A custom raster calculator evaluates a user-defined R expression on a layer or stack of layers, with pixel x/y available as variables in the expression. Raster 'combine()' identifies and counts unique pixel combinations across multiple input layers, with optional raster output of the pixel-level combination IDs. Basic plotting capability is provided for raster and vector display. 'gdalraster' leans toward minimalism and the use of simple, lightweight objects for holding raw data. Currently, only minimal S3 class interfaces have been implemented for selected R objects that contain spatial data. 'gdalraster' may be useful in applications that need scalable, low-level I/O, or prefer a direct 'GDAL' API.

Downloads

1.5K

Last 30 days

3096th

1.5K

Last 90 days

1.5K

Last year

CRAN Check Status

3 NOTE
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (14 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
OK r-devel-linux-x86_64-debian-gcc

*


            
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
NOTE r-oldrel-macos-arm64

installed package size

  installed size is 79.6Mb
  sub-directories of 1Mb or more:
    extdata   2.0Mb
    libs     75.5Mb
NOTE r-oldrel-macos-x86_64

installed package size

  installed size is 82.0Mb
  sub-directories of 1Mb or more:
    extdata   2.0Mb
    libs     77.9Mb
NOTE r-oldrel-windows-x86_64

installed package size

  installed size is 110.9Mb
  sub-directories of 1Mb or more:
    extdata   2.0Mb
    gdal      3.0Mb
    libs     94.8Mb
    proj      9.0Mb
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 2026
NOTE r-oldrel-macos-arm64

installed package size

  installed size is 79.6Mb
  sub-directories of 1Mb or more:
    extdata   2.0Mb
    libs     75.5Mb
NOTE r-oldrel-macos-x86_64

installed package size

  installed size is 82.0Mb
  sub-directories of 1Mb or more:
    extdata   2.0Mb
    libs     77.9Mb
NOTE r-oldrel-windows-x86_64

installed package size

  installed size is 110.9Mb
  sub-directories of 1Mb or more:
    extdata   2.0Mb
    gdal      3.0Mb
    libs     94.8Mb
    proj      9.0Mb

Reverse Dependencies (6)

suggests

Dependency Network

Dependencies Reverse dependencies bit64 nanoarrow Rcpp (>= 1.0.7) wk xml2 yyjsonr FIESTA FIESTAutils geotargets tissot gpkg ursa gdalraster

Version History

new 2.4.0 Mar 9, 2026