Package: gdalraster 1.11.1

Chris Toney

gdalraster: Bindings to the 'Geospatial Data Abstraction Library' Raster API

Interface to the Raster API of the 'Geospatial Data Abstraction Library' ('GDAL', <https://gdal.org>). Bindings are implemented in an exposed C++ class encapsulating a 'GDALDataset' and its raster band objects, along with several stand-alone functions. These support manual creation of uninitialized datasets, creation from existing raster as template, read/set dataset parameters, low level I/O, color tables, raster attribute tables, virtual raster (VRT), and 'gdalwarp' wrapper for reprojection and mosaicing. Includes 'GDAL' algorithms ('dem_proc()', 'polygonize()', 'rasterize()', etc.), and functions for coordinate transformation and spatial reference systems. Calling signatures resemble the native C, C++ and Python APIs provided by the 'GDAL' project. Includes raster 'calc()' to evaluate a given R expression on a layer or stack of layers, with pixel x/y available as variables in the expression; and raster 'combine()' to identify and count unique pixel combinations across multiple input layers, with optional output of the pixel-level combination IDs. Provides raster display using base 'graphics'. Bindings to a subset of the 'OGR' API are also included for managing vector data sources. Bindings to a subset of the Virtual Systems Interface ('VSI') are also included to support operations on 'GDAL' virtual file systems. These are general utility functions that abstract file system operations on URLs, cloud storage services, 'Zip'/'GZip'/'7z'/'RAR' archives, and in-memory files. '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 [ctb], Frank Warmerdam [ctb, cph], Even Rouault [ctb, cph], Marius Appel [ctb, cph], Daniel James [ctb, cph], Peter Dimov [ctb, cph]

gdalraster_1.11.1.tar.gz
gdalraster_1.11.1.tar.gz(r-4.5-noble)gdalraster_1.11.1.tar.gz(r-4.4-noble)
gdalraster_1.11.1.tgz(r-4.4-emscripten)gdalraster_1.11.1.tgz(r-4.3-emscripten)
gdalraster.pdf |gdalraster.html
gdalraster/json (API)
NEWS

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

Peer review:

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

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

5.09 score 2 packages 23 scripts 692 downloads 128 exports 7 dependencies

Last updated 5 months agofrom:31b5923cfd. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 11 2024
R-4.5-linux-x86_64OKNov 11 2024

Exports:addFilesInZipapply_geotransformbandCopyWholeRasterbbox_from_wktbbox_intersectbbox_to_wktbbox_transformbbox_unionbuildRATbuildVRTcalcCmbTablecombinecopyDatasetFilescreatecreateColorRampcreateCopyDEFAULT_DEM_PROCDEFAULT_NODATAdeleteDatasetdem_procdisplayRATdump_open_datasetsepsg_to_wktfillNodatafootprintg_areag_bufferg_centroidg_containsg_crossesg_differenceg_disjointg_distanceg_equalsg_intersectiong_intersectsg_is_emptyg_is_validg_lengthg_nameg_overlapsg_sym_differenceg_touchesg_transformg_uniong_withingdal_formatsgdal_versionGDALRastergeos_versionget_cache_usedget_config_optionget_num_cpusget_pixel_lineget_usable_physical_ramgetCreationOptionshas_geoshas_spatialitehttp_enabledinv_geotransforminv_projectogr_def_fieldogr_def_geom_fieldogr_def_layerogr_ds_createogr_ds_existsogr_ds_formatogr_ds_layer_countogr_ds_layer_namesogr_ds_test_capogr_execute_sqlogr_field_createogr_field_deleteogr_field_indexogr_field_renameogr_geom_field_createogr_layer_createogr_layer_deleteogr_layer_existsogr_layer_field_namesogr_layer_test_capogr2ogrogrinfoplot_rasterpolygonizepop_error_handlerproj_networkingproj_search_pathsproj_versionpush_error_handlerrasterFromRasterrasterizerasterToVRTread_dsrenameDatasetRunningStatsSEEK_CURSEEK_ENDSEEK_SETset_config_optionsieveFiltersrs_is_geographicsrs_is_projectedsrs_is_samesrs_to_wkttransform_xytranslatevsi_clear_path_optionsvsi_copy_filevsi_curl_clear_cachevsi_get_disk_free_spacevsi_get_file_metadatavsi_get_fs_optionsvsi_get_fs_prefixesvsi_mkdirvsi_read_dirvsi_renamevsi_rmdirvsi_set_path_optionvsi_statvsi_supports_rnd_writevsi_supports_seq_writevsi_syncvsi_unlinkvsi_unlink_batchVSIFilewarp

Dependencies:bitbit64cliRcppRcppInt64rlangxml2

GDAL Config Quick Reference

Rendered fromgdal-config-quick-ref.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2024-06-14
Started: 2023-11-30

Raster API Tutorial

Rendered fromraster-api-tutorial.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2024-02-26
Started: 2023-06-29

Raster Attribute Tables

Rendered fromraster-attribute-tables.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2023-11-30
Started: 2023-10-28

Readme and manuals

Help Manual

Help pageTopics
Bindings to the GDAL Raster 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
Copy a whole raster band efficientlybandCopyWholeRaster
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
List of default DEM processing optionsDEFAULT_DEM_PROC
List of default nodata values by raster data typeDEFAULT_NODATA
Delete named datasetdeleteDataset
GDAL DEM processingdem_proc
Display a GDAL Raster Attribute TabledisplayRAT
Report open datasetsdump_open_datasets
Convert spatial reference from EPSG code to OGC Well Known Textepsg_to_wkt
Fill selected pixels by interpolation from surrounding areasfillNodata
Compute footprint of a rasterfootprint
Compute the area of a geometryg_area
Binary operations on WKT geometriesg_binary_op g_difference g_intersection g_sym_difference g_union
Geometry binary predicates operating on WKTg_binary_pred g_contains g_crosses g_disjoint g_equals g_intersects g_overlaps g_touches g_within
Compute buffer of a WKT geometryg_buffer
Compute the centroid of a geometryg_centroid
Compute the distance between two geometriesg_distance
Test if a geometry is emptyg_is_empty
Test if a geometry is validg_is_valid
Compute the length of a geometryg_length
Extract the geometry type name from a WKT geometryg_name
Apply a coordinate transformation to a WKT geometryg_transform
Retrieve information on GDAL format drivers for raster and vectorgdal_formats
Get GDAL versiongdal_version
Class encapsulating a raster dataset and associated band objectsGDALRaster GDALRaster-class Rcpp_GDALRaster Rcpp_GDALRaster-class
Get GEOS versiongeos_version
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 of a GDAL drivergetCreationOptions
Is GEOS available?has_geos
Is SpatiaLite available?has_spatialite
Check if GDAL CPLHTTP services can be useful (libcurl)http_enabled
Invert geotransforminv_geotransform
Inverse project geospatial x/y coordinates to longitude/latitudeinv_project
OGR feature class definition for vector dataogr_define ogr_def_field ogr_def_geom_field ogr_def_layer
Utility functions for managing vector data sourcesogr_ds_create ogr_ds_exists 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_geom_field_create ogr_layer_create ogr_layer_delete ogr_layer_exists ogr_layer_field_names ogr_layer_test_cap ogr_manage
Convert vector data between different formatsogr2ogr
Retrieve information about a vector data sourceogrinfo
Display raster dataplot_raster
Create a polygon feature layer from raster datapolygonize
Pop error handler off stackpop_error_handler
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
Rename a datasetrenameDataset
Class to calculate mean and variance in one passRcpp_RunningStats Rcpp_RunningStats-class RunningStats RunningStats-class
Set GDAL configuration optionset_config_option
Remove small raster polygonssieveFilter
Check if WKT definition is a geographic coordinate systemsrs_is_geographic
Check if WKT definition is a projected coordinate systemsrs_is_projected
Do these two spatial references describe the same system?srs_is_same
Convert various spatial reference formats to Well Known Textsrs_to_wkt
Transform geospatial x/y coordinatestransform_xy
Convert raster data between different formatstranslate
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
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
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
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
Class wrapping the GDAL VSIVirtualHandle API for binary file I/ORcpp_VSIFile Rcpp_VSIFile-class VSIFile VSIFile-class
Raster reprojection and mosaicingwarp