Package: gdalraster 1.11.1.9515

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.9515.tar.gz
gdalraster_1.11.1.9515.zip(r-4.5)gdalraster_1.11.1.9515.zip(r-4.4)gdalraster_1.11.1.9515.zip(r-4.3)
gdalraster_1.11.1.9515.tgz(r-4.4-x86_64)gdalraster_1.11.1.9515.tgz(r-4.4-arm64)gdalraster_1.11.1.9515.tgz(r-4.3-x86_64)gdalraster_1.11.1.9515.tgz(r-4.3-arm64)
gdalraster_1.11.1.9515.tar.gz(r-4.5-noble)gdalraster_1.11.1.9515.tar.gz(r-4.4-noble)
gdalraster_1.11.1.9515.tgz(r-4.4-emscripten)gdalraster_1.11.1.9515.tgz(r-4.3-emscripten)
gdalraster.pdf |gdalraster.html
gdalraster/json (API)
NEWS

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

Peer review:

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

Pkgdown:https://usdaforestservice.github.io

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

On CRAN:

gdalgeospatialrastervectorcpp

9.21 score 42 stars 2 packages 24 scripts 699 downloads 145 exports 8 dependencies

Last updated 14 days agofrom:2cd0ced7c7. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 07 2024
R-4.5-win-x86_64OKDec 07 2024
R-4.5-linux-x86_64OKDec 07 2024
R-4.4-win-x86_64OKDec 07 2024
R-4.4-mac-x86_64OKDec 07 2024
R-4.4-mac-aarch64OKDec 07 2024
R-4.3-win-x86_64OKDec 07 2024
R-4.3-mac-x86_64OKDec 07 2024
R-4.3-mac-aarch64OKDec 07 2024

Exports:addFilesInZipapply_geotransformautoCreateWarpedVRTbandCopyWholeRasterbbox_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_make_validg_nameg_overlapsg_summaryg_sym_differenceg_touchesg_transformg_uniong_withing_wk2wkgdal_formatsgdal_versionGDALRasterGDALVectorgeos_versionget_cache_usedget_config_optionget_num_cpusget_pixel_lineget_usable_physical_ramgetCreationOptionshas_geoshas_spatialitehttp_enabledidentifyDriverinspectDatasetinv_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_renameogr_layer_test_capogr_procogr2ogrogrinfoplot_rasterplot.OGRFeatureplot.OGRFeatureSetpolygonizepop_error_handlerprint.OGRFeatureprint.OGRFeatureSetproj_networkingproj_search_pathsproj_versionpush_error_handlerrasterFromRasterrasterizerasterToVRTread_dsrenameDatasetRunningStatsSEEK_CURSEEK_ENDSEEK_SETset_config_optionsieveFiltersrs_find_epsgsrs_get_namesrs_is_geographicsrs_is_projectedsrs_is_samesrs_to_wkttransform_xytranslatevsi_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_mkdirvsi_read_dirvsi_renamevsi_rmdirvsi_set_path_optionvsi_statvsi_supports_rnd_writevsi_supports_seq_writevsi_syncvsi_unlinkvsi_unlink_batchVSIFilewarp

Dependencies:bitbit64cliRcppRcppInt64rlangwkxml2

GDAL Config Quick Reference

Rendered fromgdal-config-quick-ref.Rmdusingknitr::rmarkdownon Dec 07 2024.

Last update: 2024-06-21
Started: 2023-11-21

Raster API Tutorial

Rendered fromraster-api-tutorial.Rmdusingknitr::rmarkdownon Dec 07 2024.

Last update: 2024-08-25
Started: 2023-06-15

Raster Attribute Tables

Rendered fromraster-attribute-tables.Rmdusingknitr::rmarkdownon Dec 07 2024.

Last update: 2024-08-25
Started: 2023-10-09

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
Create a virtual warped dataset automaticallyautoCreateWarpedVRT
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
Attempt to make invalid geometries validg_make_valid
Extract geometry type names from WKB/WKT geometriesg_name
Obtain text summaries of WKB/WKT geometriesg_summary
Apply a coordinate transformation to a WKT geometryg_transform
Geometry WKB/WKT conversiong_wk2wk
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
Class encapsulating a vector layer in a GDAL datasetGDALVector GDALVector-class Rcpp_GDALVector Rcpp_GDALVector-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
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
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_rename ogr_layer_test_cap ogr_manage
GDAL OGR facilities for vector geoprocessingogr_proc
Convert vector data between different formatsogr2ogr
Retrieve information about a vector data sourceogrinfo
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
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
Try to identify a matching EPSG code for a given SRS definitionsrs_find_epsg
Return the spatial reference system namesrs_get_name
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
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
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