Return information about the GDAL library in use.

vapour_gdal_version()

vapour_all_drivers()

vapour_driver(dsource)

Arguments

dsource

data source string (i.e. file name or URL or database connection string)

Value

please see Details, character vectors or lists of character vectors

Details

vapour_gdal_version returns the version of GDAL as a string. This corresponds to the "--version" as described for "GDALVersionInfo". GDAL documentation.

vapour_all_drivers returns the names and capabilities of all available drivers, in a list. This contains:

  • driver the driver (short) name

  • name the (long) description name

  • vector logical vector indicating a vector driver

  • raster logical vector indicating a raster driver

  • create driver can create (note vapour provides no write capacity)

  • copy driver can copy (note vapour provides no write capacity)

  • virtual driver has virtual capabilities ('vsi')

vapour_driver() returns the short name of the driver, e.g. 'GPKG' or 'GTiff', to get the long name and other properties use vapour_all_drivers() and match on 'driver'.

Examples

vapour_gdal_version()
#> [1] "GDAL 3.6.3, released 2023/03/07"

drv <- vapour_all_drivers()

f <- system.file("extdata/sst_c.gpkg", package = "vapour")
vapour_driver(f)
#> [1] "GPKG"

as.data.frame(drv)[match(vapour_driver(f), drv$driver), ]
#>     driver       name vector raster create copy virtual
#> 159   GPKG GeoPackage   TRUE   TRUE   TRUE TRUE    TRUE