Construct a gdal_config_opts() object for the GPKG driver. These are global configuration options
applied to the GDAL process.
Usage
gpkg_config_opts(
sqlite_cache = NULL,
sqlite_journal = NULL,
sqlite_synchronous = NULL,
sqlite_pragma = NULL,
use_ogr_vfs = NULL,
num_threads = NULL,
...,
.set_defaults = FALSE
)Arguments
- sqlite_cache
Value for
OGR_SQLITE_CACHE(SQLite page cache, in MB).- sqlite_journal
Value for
OGR_SQLITE_JOURNAL(journal mode).- sqlite_synchronous
Value for
OGR_SQLITE_SYNCHRONOUS(e.g."OFF").- sqlite_pragma
Value for
OGR_SQLITE_PRAGMA(e.g."pragma_name=value,...").- use_ogr_vfs
Value for
SQLITE_USE_OGR_VFS(logical ->"YES"/"NO").- num_threads
Value for
OGR_GPKG_NUM_THREADS(GDAL >= 3.8.3); an integer or"ALL_CPUS". Threads used when reading tables through the ArrowArray interface. GDAL default ismin(4, nCPU).- ...
Additional
NAME = valueoptions passed through verbatim alongside the typed arguments. They are coerced and validated against the driver metadata in the same way, and take precedence over a typed argument that sets the same option.- .set_defaults
Logical. If
TRUE, options left unset (NULL) are filled with the driver's documented GDAL metadata defaults (via the relevantgdal_vector_driver_*_opts_defaults()); user-supplied values always take precedence. Defaults toFALSE.
Value
A gdal_config_opts() object for the GPKG driver.
Examples
gpkg_config_opts(sqlite_synchronous = "OFF", use_ogr_vfs = TRUE, num_threads = "ALL_CPUS")
#> <gdal_config_opts/gdal_opts>
#> ℹ Driver: GPKG
#> ℹ Configuration Options: OGR_SQLITE_SYNCHRONOUS=OFF, SQLITE_USE_OGR_VFS=YES, OGR_GPKG_NUM_THREADS=ALL_CPUS
#> ℹ Command Line: --config 'OGR_SQLITE_SYNCHRONOUS=OFF' --config 'SQLITE_USE_OGR_VFS=YES' --config 'OGR_GPKG_NUM_THREADS=ALL_CPUS'