Package: gdalraster 2.6.1.9000

Chris Toney

gdalraster: Bindings to 'GDAL'

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.

Authors:Chris Toney [aut, cre], Michael D. Sumner [aut], Pepijn de Vries [ctb], Frank Warmerdam [ctb, cph], Even Rouault [ctb, cph], Marius Appel [ctb, cph], Daniel James [ctb, cph], Peter Dimov [ctb, cph]

gdalraster_2.6.1.9000.tar.gz
gdalraster_2.6.1.9000.zip(r-4.7)gdalraster_2.6.1.9000.zip(r-4.6)gdalraster_2.6.1.9000.zip(r-4.5)
gdalraster_2.6.1.9000.tgz(r-4.6-x86_64)gdalraster_2.6.1.9000.tgz(r-4.6-arm64)gdalraster_2.6.1.9000.tgz(r-4.5-x86_64)gdalraster_2.6.1.9000.tgz(r-4.5-arm64)
gdalraster_2.6.1.9000.tar.gz(r-4.7-arm64)gdalraster_2.6.1.9000.tar.gz(r-4.7-x86_64)gdalraster_2.6.1.9000.tar.gz(r-4.6-arm64)gdalraster_2.6.1.9000.tar.gz(r-4.6-x86_64)
gdalraster_2.6.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
gdalraster/json (API)
NEWS

# Install 'gdalraster' in R:
install.packages('gdalraster', repos = c('https://firelab.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/firelab/gdalraster/issues

Pkgdown/docs site:https://firelab.github.io

Uses libs:
  • gdal– Geospatial Data Abstraction Library
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

gdalgeospatialgisrastervectorcpp

11.28 score 57 stars 10 packages 146 scripts 1.4k downloads 241 exports 10 dependencies

Last updated from:cdb0a7d6aa. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK277
linux-devel-x86_64OK267
source / vignettesOK398
linux-release-arm64OK269
linux-release-x86_64OK281
macos-release-arm64OK240
macos-release-x86_64OK363
macos-oldrel-arm64OK215
macos-oldrel-x86_64OK334
windows-develOK1011
windows-releaseOK642
windows-oldrelOK791
wasm-releaseOK251

Exports:addFilesInZipapply_geotransformautoCreateWarpedVRTbandCopyWholeRasterbbox_from_dim_gtbbox_from_wktbbox_intersectbbox_to_wktbbox_transformbbox_unionbuildRATbuildVRTcalcCmbTablecombinecopyDatasetFilescreatecreateColorRampcreateCopyDEFAULT_DEM_PROCDEFAULT_NODATAdeleteDatasetdem_procdisplayRATdt_finddt_find_for_valuedt_is_complexdt_is_floatingdt_is_integerdt_is_signeddt_sizedt_uniondt_union_with_valuedump_open_datasetseastnessepsg_to_wktfillNodatafootprintg_add_geomg_areag_boundaryg_bufferg_build_collectiong_build_polygon_from_edgesg_centroidg_concave_hullg_containsg_convex_hullg_coordsg_createg_crossesg_delaunay_triangulationg_differenceg_disjointg_distanceg_envelopeg_equalsg_geodesic_areag_geodesic_lengthg_geom_countg_get_geomg_intersectiong_intersectsg_invalid_reasong_is_3Dg_is_emptyg_is_measuredg_is_ringg_is_validg_lengthg_make_validg_nameg_normalizeg_overlapsg_point_on_surfaceg_segmentizeg_set_3Dg_set_measuredg_simplifyg_summaryg_swap_xyg_sym_differenceg_touchesg_transformg_unary_uniong_uniong_withing_wk2wkgdal_alggdal_commandsgdal_compute_versiongdal_formatsgdal_get_driver_mdgdal_global_reg_namesgdal_rungdal_run_pipedgdal_usagegdal_versiongdal_version_numGDALAlgGDALRasterGDALVectorgeos_versionget_cache_maxget_cache_usedget_config_optionget_num_cpusget_pixel_lineget_usable_physical_ramgetCreationOptionsgt_from_dim_bboxhas_geoshas_spatialitehttp_enabledidentifyDriverinspectDatasetinv_geotransforminv_projectis_los_visiblelib_versionsmake_chunk_indexmdim_as_classicmdim_infomdim_translatenorthnessogr_def_fieldogr_def_field_domainogr_def_geom_fieldogr_def_layerogr_ds_add_field_domainogr_ds_createogr_ds_delete_field_domainogr_ds_existsogr_ds_field_domain_namesogr_ds_formatogr_ds_layer_countogr_ds_layer_namesogr_ds_test_capogr_execute_sqlogr_field_createogr_field_deleteogr_field_indexogr_field_renameogr_field_set_domain_nameogr_geom_field_createogr_layer_createogr_layer_deleteogr_layer_existsogr_layer_field_namesogr_layer_renameogr_layer_test_capogr_procogr_reprojectogr2ogrogrinfopixel_extractplot_geomplot_rasterplot.OGRFeatureplot.OGRFeatureSetpolygonizepop_error_handlerprint.OGRFeatureprint.OGRFeatureSetprogress_bar_clearproj_networkingproj_search_pathsproj_versionpush_error_handlerrasterFromRasterrasterizerasterToVRTread_dsread_to_nativeRasterrenameDatasetRunningStatsrvector_to_MEMSEEK_CURSEEK_ENDSEEK_SETset_cache_maxset_config_optionsieveFiltersrs_epsg_treats_as_lat_longsrs_epsg_treats_as_northing_eastingsrs_find_epsgsrs_get_angular_unitssrs_get_area_of_usesrs_get_axessrs_get_axes_countsrs_get_axis_mapping_strategysrs_get_celestial_body_namesrs_get_coord_epochsrs_get_linear_unitssrs_get_namesrs_get_utm_zonesrs_info_from_dbsrs_is_compoundsrs_is_derived_gcssrs_is_dynamicsrs_is_geocentricsrs_is_geographicsrs_is_localsrs_is_projectedsrs_is_samesrs_is_verticalsrs_to_projjsonsrs_to_wkttransform_boundstransform_xytranslatevalidateCreationOptionsvector_to_MEMvsi_clear_path_optionsvsi_copy_filevsi_curl_clear_cachevsi_get_actual_urlvsi_get_disk_free_spacevsi_get_file_metadatavsi_get_fs_optionsvsi_get_fs_prefixesvsi_get_signed_urlvsi_globvsi_is_localvsi_mkdirvsi_read_dirvsi_renamevsi_rmdirvsi_set_path_optionvsi_statvsi_stat_existsvsi_stat_sizevsi_stat_typevsi_supports_rnd_writevsi_supports_seq_writevsi_syncvsi_unlinkvsi_unlink_batchvsi_uri_to_vsi_pathVSIFilewarp

Dependencies:bitbit64clinanoarrowRcppRcppInt64rlangwkxml2yyjsonr

GDAL Config Quick Reference

Rendered fromgdal-config-quick-ref.Rmdusingknitr::rmarkdownon Jun 17 2026.

Last update: 2025-12-13
Started: 2023-11-21

Raster API Tutorial

Rendered fromraster-api-tutorial.Rmdusingknitr::rmarkdownon Jun 17 2026.

Last update: 2025-12-13
Started: 2023-06-15

Raster Attribute Tables

Rendered fromraster-attribute-tables.Rmdusingknitr::rmarkdownon Jun 17 2026.

Last update: 2026-03-24
Started: 2023-10-09

Vector API Overview

Rendered fromvector-api-overview.Rmdusingknitr::rmarkdownon Jun 17 2026.

Last update: 2026-05-15
Started: 2025-05-04

Readme and manuals

Help Manual

Help pageTopics
Bindings to the GDAL APIgdalraster-package gdalraster
Create/append to a potentially Seek-Optimized ZIP file (SOZip)addFilesInZip
Apply geotransform (raster column/row to geospatial x/y)apply_geotransform
Create a virtual warped dataset automaticallyautoCreateWarpedVRT
Copy a whole raster band efficientlybandCopyWholeRaster
Bounding box from dimensions and geotransformbbox_from_dim_gt
Get the bounding box of a geometry specified in OGC WKT formatbbox_from_wkt
Bounding box intersection / unionbbox_intersect bbox_union
Convert a bounding box to POLYGON in OGC WKT formatbbox_to_wkt
Transform a bounding box to a different projectionbbox_transform
Build a GDAL Raster Attribute Table with VALUE, COUNTbuildRAT
Build a GDAL virtual raster from a list of datasetsbuildVRT
Raster calculationcalc
Class for counting unique combinations of integersCmbTable CmbTable-class Rcpp_CmbTable Rcpp_CmbTable-class
Raster overlay for unique combinationscombine
Copy the files of a datasetcopyDatasetFiles
Create a new uninitialized rastercreate
Create a color rampcreateColorRamp
Create a copy of a rastercreateCopy
Helper functions for GDAL raster data typesdata_type_helpers dt_find dt_find_for_value dt_is_complex dt_is_floating dt_is_integer dt_is_signed dt_size dt_union dt_union_with_value
List of default DEM processing optionsDEFAULT_DEM_PROC
List of default nodata values by raster data typeDEFAULT_NODATA
Delete named datasetdeleteDataset
Convenience functions for simple DEM derivativesdem_derivatives eastness northness
GDAL DEM processingdem_proc
Display a GDAL Raster Attribute TabledisplayRAT
Report open datasetsdump_open_datasets
Fill selected pixels by interpolation from surrounding areasfillNodata
Compute footprint of a rasterfootprint
Binary operations on WKB or WKT geometriesg_binary_op g_difference g_intersection g_sym_difference g_union
Geometry binary predicates operating on WKB or WKTg_binary_pred g_contains g_crosses g_disjoint g_equals g_intersects g_overlaps g_touches g_within
Extract coordinate values from geometriesg_coords
Obtain the 2D or 3D bounding envelope for input geometriesg_envelope
Geometry factory functionsg_add_geom g_build_collection g_build_polygon_from_edges g_create g_factory g_get_geom
Compute measurements for WKB/WKT geometriesg_area g_centroid g_distance g_geodesic_area g_geodesic_length g_length g_measures
Obtain information about WKB/WKT geometriesg_geom_count g_invalid_reason g_is_3D g_is_empty g_is_measured g_is_ring g_is_valid g_name g_query g_summary
Apply a coordinate transformation to a WKB/WKT geometryg_transform
Unary operations on WKB or WKT geometriesg_boundary g_buffer g_concave_hull g_convex_hull g_delaunay_triangulation g_point_on_surface g_segmentize g_simplify g_unary_op g_unary_union
Geometry utility functions operating on WKB or WKTg_make_valid g_normalize g_set_3D g_set_measured g_swap_xy g_util
Geometry WKB/WKT conversiong_wk2wk
Functions for using GDAL CLI algorithmsgdal_alg gdal_cli gdal_commands gdal_global_reg_names gdal_run gdal_run_piped gdal_usage
Compute a GDAL integer version number from major, minor, revisiongdal_compute_version
Retrieve information on GDAL format drivers for raster and vectorgdal_formats
Get metadata for a GDAL format drivergdal_get_driver_md
Get GDAL versiongdal_version gdal_version_num
Class encapsulating a GDAL CLI algorithmGDALAlg GDALAlg-class Rcpp_GDALAlg Rcpp_GDALAlg-class
Class encapsulating a raster dataset and associated band objectsGDALRaster GDALRaster-class Rcpp_GDALRaster Rcpp_GDALRaster-class
Class encapsulating a vector layer in a GDAL datasetGDALVector GDALVector-class Rcpp_GDALVector Rcpp_GDALVector-class
Get GEOS versiongeos_version
Get the maximum memory size available for the GDAL block cacheget_cache_max
Get the size of memory in use by the GDAL block cacheget_cache_used
Get GDAL configuration optionget_config_option
Get the number of processors detected by GDALget_num_cpus
Raster pixel/line from geospatial x,y coordinatesget_pixel_line
Get usable physical RAM reported by GDALget_usable_physical_ram
Return the list of creation options for a GDAL drivergetCreationOptions
Geotransform from dimensions and bounding boxgt_from_dim_bbox
Is GEOS available?has_geos
Is SpatiaLite available?has_spatialite
Check if GDAL CPLHTTP services can be useful (libcurl)http_enabled
Identify the GDAL driver that can open a datasetidentifyDriver
Obtain information about a GDAL raster or vector datasetinspectDataset
Invert geotransforminv_geotransform
Inverse project geospatial x/y coordinates to longitude/latitudeinv_project
Check line of sight between pairs of point locationsis_los_visible
Return library version information for GDAL and its dependencieslib_versions
Generate an index of chunk offsets and sizes for iterating a rastermake_chunk_index
Return a view of an MDArray as a "classic" GDALDataset (i.e., 2D)mdim_as_classic
Report structure and content of a multidimensional datasetmdim_info
Convert multidimensional data between different formats, and subsetmdim_translate
OGR feature class definition for vector dataogr_define ogr_def_field ogr_def_field_domain ogr_def_geom_field ogr_def_layer
Utility functions for managing vector data sourcesogr_ds_add_field_domain ogr_ds_create ogr_ds_delete_field_domain ogr_ds_exists ogr_ds_field_domain_names ogr_ds_format ogr_ds_layer_count ogr_ds_layer_names ogr_ds_test_cap ogr_execute_sql ogr_field_create ogr_field_delete ogr_field_index ogr_field_rename ogr_field_set_domain_name ogr_geom_field_create ogr_layer_create ogr_layer_delete ogr_layer_exists ogr_layer_field_names ogr_layer_rename ogr_layer_test_cap ogr_manage
GDAL OGR facilities for vector geoprocessingogr_proc
Reproject a vector layerogr_reproject
Convert vector data between different formatsogr2ogr
Retrieve information about a vector data sourceogrinfo
Extract pixel values at geospatial point locationspixel_extract
Plot WKT or WKB geometriesplot_geom
Display raster dataplot_raster
Plot the geometry of an 'OGRFeature' objectplot.OGRFeature
Plot the geometry column of an 'OGRFeatureSet'plot.OGRFeatureSet
Create a polygon feature layer from raster datapolygonize
Pop error handler off stackpop_error_handler
Print an 'OGRFeature' objectprint.OGRFeature
Print an 'OGRFeatureSet'print.OGRFeatureSet
Clear progress barprogress_bar_clear
Check, enable or disable PROJ networking capabilitiesproj_networking
Get or set search path(s) for PROJ resource filesproj_search_paths
Get PROJ versionproj_version
Push a new GDAL CPLError handlerpush_error_handler
Create a raster from an existing raster as templaterasterFromRaster
Burn vector geometries into a rasterrasterize
Create a GDAL virtual raster derived from one source datasetrasterToVRT
Convenience wrapper for 'GDALRaster$read()'read_ds
Read raster data as nativeRasterread_to_nativeRaster
Rename a datasetrenameDataset
Class to calculate mean and variance in one passRcpp_RunningStats Rcpp_RunningStats-class RunningStats RunningStats-class
Create a GDAL in-memory dataset from R data without copyingrvector_to_MEM vector_to_MEM
Set the maximum memory size for the GDAL block cacheset_cache_max
Set GDAL configuration optionset_config_option
Remove small raster polygonssieveFilter
Convert spatial reference definitions to OGC WKT or PROJJSONepsg_to_wkt srs_convert srs_to_projjson srs_to_wkt
Obtain information about coordinate reference systems in the PROJ DBsrs_info_from_db
Obtain information about a spatial reference systemsrs_epsg_treats_as_lat_long srs_epsg_treats_as_northing_easting srs_find_epsg srs_get_angular_units srs_get_area_of_use srs_get_axes srs_get_axes_count srs_get_axis_mapping_strategy srs_get_celestial_body_name srs_get_coord_epoch srs_get_linear_units srs_get_name srs_get_utm_zone srs_is_compound srs_is_derived_gcs srs_is_dynamic srs_is_geocentric srs_is_geographic srs_is_local srs_is_projected srs_is_same srs_is_vertical srs_query
Transform boundarytransform_bounds
Transform geospatial x/y coordinatestransform_xy
Convert raster data between different formatstranslate
Validate the list of creation options that are handled by a drivervalidateCreationOptions
Clear path specific configuration optionsvsi_clear_path_options
Constants for VSIFile$seek()SEEK_CUR SEEK_END SEEK_SET vsi_constants
Copy a source file to a target filenamevsi_copy_file
Clean cache associated with /vsicurl/ and related file systemsvsi_curl_clear_cache
Returns the actual URL of a supplied VSI filenamevsi_get_actual_url
Return free disk space available on the filesystemvsi_get_disk_free_space
Get metadata on filesvsi_get_file_metadata
Return the list of options associated with a virtual file system handlervsi_get_fs_options
Return the list of virtual file system handlers currently registeredvsi_get_fs_prefixes
Returns a signed URL for a supplied VSI filenamevsi_get_signed_url
Get file and directory names matching a pattern that may contain wildcardsvsi_glob
Returns if the file/filesystem is "local".vsi_is_local
Create a directoryvsi_mkdir
Read names in a directoryvsi_read_dir
Rename a filevsi_rename
Delete a directoryvsi_rmdir
Set a path specific option for a given path prefixvsi_set_path_option
Get filesystem object infovsi_stat vsi_stat_exists vsi_stat_size vsi_stat_type
Return whether the filesystem supports random writevsi_supports_rnd_write
Return whether the filesystem supports sequential writevsi_supports_seq_write
Synchronize a source file/directory with a target file/directoryvsi_sync
Delete a filevsi_unlink
Delete several files in a batchvsi_unlink_batch
Return VSI compatible paths from URIs / URLsvsi_uri_to_vsi_path
Class wrapping the GDAL VSIVirtualHandle API for binary file I/ORcpp_VSIFile Rcpp_VSIFile-class VSIFile VSIFile-class
Raster reprojection and mosaicingwarp