Skip to content

gdalraster

2.7.0Package record

Bindings to 'GDAL'

5packages dependsuggested by 2
17Kdownloads / year
74.5%test coverage
13/13flavors OK

Overview

About

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.

Changes in 2.7.0
  • add GDALVector$writeArrowBatch(): write a batch of rows from a data frame using GDAL Arrow C stream interface (#976)
  • add get_data_ptr(): get the pointer address of R data with format suitable as DATAPOINTER for a GDAL MEM dataset (#993)
  • add g_point_on_surface(): wrapper of OGR_G_PointOnSurface() in the GDAL API
  • get_pixel_line(): treat points "exactly" on the right or bottom raster edge as inside (#973)
  • RunningStats class: support optionally returning the count as bit64::integer64 (#975)
  • fix print.OGRFeatureSet(): avoid error if geometry column is missing
  • minor reformat the documentation of Rcpp exposed classes to satisfy CRAN requirements w.r.t. .Rd files without \usage
  • (internal) replace ARE_REAL_EQUAL() with equal_within_ulps_() (#974)
  • (internal) fix tests for some geometry functions due to changes in GEOS 3.15.0
  • (internal) fix test for GDALAlg::setArg() due to an argument data type change at GDAL 3.14

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 24.2 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-27
  • ERROR11 OK, 1 NOTE, 1 ERROR2026-09-08
  • NOTE12 OK, 1 NOTE2026-07-11
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
Show 6 earlier changesHide 6 earlier changes
  • OK13 OK2026-05-12
  • WARNING12 OK, 1 WARNING2026-05-11
  • OK13 OK2026-05-02
  • NOTE11 OK, 3 NOTE2026-04-22
  • ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 2.7.0
READMEYes · 851 wordsVignettesYes · 4 · evaluation depends on the environmentNEWSYes · 100% structured · mentions 2.7.0Citation fileYes · software entry onlyWebsiteYes · pkgdown

The repository also keeps web-only articles.

Help pages
135includes a package overview page
Examples that run
97%118 run in a plain check (10 of them under a condition) · 3 never run · 1 hold no code
Exported functions with examples
91%
Documented parameters
not tracked
Return-value docs
not tracked
Help pages citing references
1%

Downloads

17K
CRAN downloads in the past year
Rank #3,260 · ~47/day · ~1.4K/mo
Daily download trend is not available in this view yet.
1.8K30 days
3.5K90 days
17K1 year
Compare downloads with other packages →
Also on658 r2u7 autocran6.9K conda_forge64 c2d4u

Repository

60Stars
10Forks
9Open issues
0Open PRs
23Releases
3,417Commits
9Commit identities
gdalrasterr-packagerstatsgeospatialvectorgis
3,417 commits · Last activity 2026-10-07 · 0% stars, 30d · Default branch at 2.7.0.9002, ahead of CRAN 2.7.0 (checked 2026-10-11) · Discussions: 26 posts
Responsiveness
How these are sampled
PRs merged (all time)
98%
Median days to close, 50 most recently updated closed issues
6
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-10-12 · 482026-09-16 · 60
PracticesBeta

17 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/firelab/gdalraster on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (3)
Code of conductContributing guideSecurity policy
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-07 · The repository has a site deploy workflow

pkgdown site last built 2026-10-07

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
Automation and maintenance (1)
Dependabot
Lint, format, editor (4)
lintrEditorConfigVS CodeRStudio project
Git structural (2)
.gitattributesblame-ignore revs
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)

Installing gdalraster adds 10 packages (10 with compiled code, 6.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB, yyjsonr 1.3 MB, wk 1.0 MB.

Depends (1)
R >= 4.2.0
Imports (13)
bit64cligraphicsgrDevicesmethodsnanoarrowRcpp (>= 1.0.7)statstoolsutilswkxml2yyjsonr
Enhances (0)
none
Reverse dependencies
5direct
0indirect
Imports 5
Suggested by 2
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (8)
Author, Maintainer since 1.1.1 (2023)
Author · added in 1.11.0
Contributor, Copyright holder
configure.ac based on https://github.com/appelmar/gdalcubes
Contributor, Copyright holder
Boost combine hashes method in src/cmb_table.h
Contributor, Copyright holder
Boost combine hashes method in src/cmb_table.h
Contributor, Copyright holder
GDAL API/documentation
Contributor, Copyright holder
GDAL API/documentation
Contributor · added in 2.5.0
Releases (23)

Pick two releases to compare their code metrics.

Show 11 earlier eventsHide 11 earlier events

Package metadata

First published
2023-05-24
Total releases
23 / 3 yrs
License
MIT + file LICENSE OSI
Copyright
See file inst/COPYRIGHTS for details.
Minimum R
≥ 4.2.0
Download size
3.2 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' entry:

citation("gdalraster")

The package provides a citation file, so citation() returns the authors' own entry.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for gdalraster version 2.7.0 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy