Skip to content

gdalraster

Bindings to 'GDAL'

v2.5.0 · Mar 24, 2026 · 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.6K

Last 30 days

3105th

4.7K

Last 90 days

15.9K

Last year

Trend: +1.4% (30d vs prior 30d)

CRAN Check Status

7 NOTE
7 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
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 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 NOTE
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 (7 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

compiled code

File ‘gdalraster/libs/gdalraster.so’:
  Found non-API call to R: ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-devel-linux-x86_64-debian-gcc

compiled code

File ‘gdalraster/libs/gdalraster.so’:
  Found non-API call to R: ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-devel-windows-x86_64

compiled code

File 'gdalraster/libs/x64/gdalraster.dll':
  Found non-API call to R: 'R_UnboundValue'

Compiled code should not call non-API entry points in R.

See 'Writing portable packages' in the 'Writing R Extensions' manual,
and section 'Moving into C API compliance' for issues with the use of
non-API entry points.
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.8Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is 111.0Mb
  sub-directories of 1Mb or more:
    extdata   2.0Mb
    gdal      3.0Mb
    libs     94.9Mb
    proj      9.0Mb
NOTE r-patched-linux-x86_64

compiled code

File ‘gdalraster/libs/gdalraster.so’:
  Found non-API call to R: ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 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 cli nanoarrow Rcpp (>= 1.0.7) wk xml2 yyjsonr FIESTA FIESTAutils geotargets tissot gpkg ursa gdalraster

Version History

updated 2.5.0 ← 2.4.0 diff Mar 25, 2026
new 2.4.0 Mar 10, 2026
updated 2.4.0 ← 2.3.0 diff Dec 17, 2025
updated 2.3.0 ← 2.2.1 diff Nov 18, 2025
updated 2.2.1 ← 2.2.0 diff Aug 28, 2025
updated 2.2.0 ← 2.1.0 diff Aug 21, 2025
updated 2.1.0 ← 2.0.0 diff Jul 13, 2025
updated 2.0.0 ← 1.12.0 diff May 10, 2025
updated 1.12.0 ← 1.11.1 diff Jan 18, 2025
updated 1.11.1 ← 1.11.0 diff Jun 12, 2024
updated 1.11.0 ← 1.10.0 diff Jun 2, 2024
updated 1.10.0 ← 1.9.0 diff Mar 25, 2024
updated 1.9.0 ← 1.8.0 diff Feb 25, 2024
updated 1.8.0 ← 1.7.0 diff Jan 26, 2024
updated 1.7.0 ← 1.6.0 diff Nov 28, 2023
updated 1.6.0 ← 1.5.0 diff Oct 27, 2023
updated 1.5.0 ← 1.4.0 diff Sep 24, 2023
updated 1.4.0 ← 1.3.0 diff Aug 28, 2023
updated 1.3.0 ← 1.2.0 diff Jun 28, 2023
updated 1.2.0 ← 1.1.1 diff May 28, 2023