Skip to content

gdalraster

Bindings to 'GDAL'

v2.6.1 · May 16, 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

CRAN

1.3K

Last 30 days

3250th

4.2K

Last 90 days

17.1K

Last year

Trend: -14.9% (30d vs prior 30d)

r2u CRAN

25

Last 30 days

192

Last 90 days

786

Last year

Trend: -67.5% (30d vs prior 30d)

autoCRAN

0

Last 7 days

11

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

conda-forge CRAN

390

Last 30 days

1.5K

Last 90 days

6.9K

Last year

Trend: -60.3% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 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-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 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 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

for unstated dependencies in examples

Warning in file(out, "wt") :
  cannot open file '/tmp/Rtmpys3qQn/file14233934813ff8/vsi_get_actual_url.R': No space left on device
Error in file(out, "wt") : cannot open the connection
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 12, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE May 11, 2026
WARNING r-devel-linux-x86_64-debian-gcc

PDF version of manual

LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 2, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 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.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
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/gdalraster.Rcheck/00install.out' for details.
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 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

Code

Structure

Lines of code

76,332

Files

291

Compiled share

38.4%

Has compiled src

Yes

Language breakdown

R 20,415 (26.7%)C/C++/src 29,302 (38.4%)Tests 10,635 (13.9%)Docs 14,397 (18.9%)Vignettes 1,583 (2.1%)

API

Exported functions

228

Internal functions

125

Testing & CI

Has tests

Yes

Test-to-code ratio

0.52

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

\dontrun example ratio

2.5%

Roxygen coverage

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

50%

Unsafe pattern score

8

Dep constraint coverage

7.7%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.2.0

System requirements

3

C++ standard

C++17

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

22

First release

2023-05-24

Latest release

2026-05-16

Avg cadence

33 days

Cold removal rate

Dep drift

11

LOC over versions

v1.1.1: 8,110 LOCv1.2.0: 8,246 LOCv1.3.0: 9,492 LOCv1.4.0: 10,771 LOCv1.5.0: 13,186 LOCv1.6.0: 15,437 LOCv1.7.0: 18,273 LOCv1.8.0: 18,797 LOCv1.9.0: 21,415 LOCv1.10.0: 23,977 LOCv1.11.0: 31,298 LOCv1.11.1: 31,682 LOCv1.12.0: 32,343 LOCv2.0.0: 53,743 LOCv2.1.0: 59,247 LOCv2.2.0: 62,654 LOCv2.2.1: 62,797 LOCv2.3.0: 68,251 LOCv2.4.0: 69,372 LOCv2.5.0: 73,117 LOCv2.6.0: 76,311 LOCv2.6.1: 76,332 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

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

23 tracked
updated 2.6.1 ← 2.6.0 diff May 16, 2026
updated 2.6.0 ← 2.5.0 diff May 4, 2026
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