Learn R Programming

gdalraster (version 1.11.1)

set_config_option: Set GDAL configuration option

Description

set_config_option() sets a GDAL runtime configuration option. Configuration options are essentially global variables the user can set. They are used to alter the default behavior of certain raster format drivers, and in some cases the GDAL core. For a full description and listing of available options see https://gdal.org/user/configoptions.html.

Usage

set_config_option(key, value)

Value

No return value, called for side effects.

Arguments

key

Character name of a configuration option.

value

Character value to set for the option. value = "" (empty string) will unset a value previously set by set_config_option().

See Also

get_config_option()

vignette("gdal-config-quick-ref")

Examples

Run this code
set_config_option("GDAL_CACHEMAX", "10%")
get_config_option("GDAL_CACHEMAX")
## unset:
set_config_option("GDAL_CACHEMAX", "")

Run the code above in your browser using DataLab