Skip to contents

Package overview

gdalraster gdalraster-package
Bindings to the GDAL Raster API

Exposed C++ classes

CmbTable-class Rcpp_CmbTable Rcpp_CmbTable-class CmbTable
Class for counting unique combinations of integers
GDALRaster-class Rcpp_GDALRaster Rcpp_GDALRaster-class GDALRaster
Class encapsulating a raster dataset and its associated raster bands
RunningStats-class Rcpp_RunningStats Rcpp_RunningStats-class RunningStats
Class to calculate mean and variance in one pass

Stand-alone functions

Raster creation

create()
Create a new uninitialized raster
createCopy()
Create a copy of a raster
getCreationOptions()
Return the list of creation options of a GDAL driver
rasterFromRaster()
Create a raster from an existing raster as template
translate()
Convert raster data between different formats

Virtual raster

buildVRT()
Build a GDAL virtual raster from a list of datasets
rasterToVRT()
Create a GDAL virtual raster derived from one source dataset

Reproject/crop/mosaic

warp()
Raster reprojection and mosaicing

Algorithms

calc()
Raster calculation
combine()
Raster overlay for unique combinations
dem_proc()
GDAL DEM processing
fillNodata()
Fill selected pixels by interpolation from surrounding areas
footprint()
Compute footprint of a raster
polygonize()
Create a polygon feature layer from raster data
rasterize()
Burn vector geometries into a raster
sieveFilter()
Remove small raster polygons

Display

plot_raster()
Display raster data
read_ds()
Convenience wrapper for GDALRaster$read()

Raster attribute tables

buildRAT()
Build a GDAL Raster Attribute Table with VALUE, COUNT
createColorRamp()
Create a color ramp
displayRAT()
Display a GDAL Raster Attribute Table

Geotransform conversion

get_pixel_line()
Raster pixel/line from geospatial x,y coordinates
inv_geotransform()
Invert geotransform

Coordinate transformation

inv_project()
Inverse project geospatial x/y coordinates to longitude/latitude
transform_xy()
Transform geospatial x/y coordinates

Spatial reference systems

epsg_to_wkt()
Convert spatial reference from EPSG code to OGC Well Known Text
srs_is_geographic()
Check if WKT definition is a geographic coordinate system
srs_is_projected()
Check if WKT definition is a projected coordinate system
srs_is_same()
Do these two spatial references describe the same system?
srs_to_wkt()
Convert spatial reference definition to OGC Well Known Text

Geometry

bbox_from_wkt()
Get the bounding box of a geometry specified in OGC WKT format
bbox_to_wkt()
Convert a bounding box to POLYGON in OGC WKT format
bbox_intersect() bbox_union()
Bounding box intersection / union
bbox_transform()
Transform a bounding box to a different projection
g_area()
Compute the area of a geometry
g_intersection() g_union() g_difference() g_sym_difference()
Binary operations on WKT geometries
g_intersects() g_disjoint() g_touches() g_contains() g_within() g_crosses() g_overlaps() g_equals()
Geometry binary predicates operating on WKT
g_buffer()
Compute buffer of a WKT geometry
g_centroid()
Compute the centroid of a geometry
g_distance()
Compute the distance between two geometries
g_is_empty()
Test if a geometry is empty
g_is_valid()
Test if a geometry is valid
g_length()
Compute the length of a geometry
g_name()
Extract the geometry type name from a WKT geometry
g_transform()
Apply a coordinate transformation to a WKT geometry
geos_version()
Get GEOS version
has_geos()
Is GEOS available?

Data management

addFilesInZip()
Create/append to a potentially Seek-Optimized ZIP file (SOZip)
bandCopyWholeRaster()
Copy a whole raster band efficiently
copyDatasetFiles()
Copy the files of a dataset
deleteDataset()
Delete named dataset
renameDataset()
Rename a dataset

OGR vector utilities

ogr2ogr()
Convert vector data between different formats
ogrinfo()
Retrieve information about a vector data source

Virtual file systems

vsi_clear_path_options()
Clear path specific configuration options
vsi_copy_file()
Copy a source file to a target filename
vsi_curl_clear_cache()
Clean cache associated with /vsicurl/ and related file systems
vsi_get_disk_free_space()
Return free disk space available on the filesystem
vsi_get_fs_options()
Return the list of options associated with a virtual file system handler
vsi_get_fs_prefixes()
Return the list of virtual file system handlers currently registered
vsi_mkdir()
Create a directory
vsi_read_dir()
Read names in a directory
vsi_rename()
Rename a file
vsi_rmdir()
Delete a directory
vsi_set_path_option()
Set a path specific option for a given path prefix
vsi_stat()
Get filesystem object info
vsi_supports_rnd_write()
Return whether the filesystem supports random write
vsi_supports_seq_write()
Return whether the filesystem supports sequential write
vsi_sync()
Synchronize a source file/directory with a target file/directory
vsi_unlink()
Delete a file
vsi_unlink_batch()
Delete several files in a batch

GDAL configuration

gdal_formats()
Retrieve information on GDAL format drivers for raster and vector
gdal_version()
Get GDAL version
get_cache_used()
Get the size of memory in use by the GDAL block cache
get_config_option()
Get GDAL configuration option
set_config_option()
Set GDAL configuration option
push_error_handler()
Push a new GDAL CPLError handler
pop_error_handler()
Pop error handler off stack

PROJ configuration

proj_networking()
Check, enable or disable PROJ networking capabilities
proj_search_paths()
Get or set search path(s) for PROJ resource files
proj_version()
Get PROJ version

Lookups

DEFAULT_DEM_PROC
List of default DEM processing options
DEFAULT_NODATA
List of default nodata values by raster data type