Skip to contents

GDAL options control how the GDAL/OGR library reads, writes, and otherwise processes geospatial data. This package models the distinct GDAL option channels as a small family of S3 classes, each backed by a named list of NAME = "VALUE" pairs (values stored as their coerced GDAL strings) plus a driver attribute, so a set of options is an inert, composable value that can be rendered on demand to whichever form a given consumer needs.

In the GDAL CLI, an option is supplied via one of these argument flags:

Classes

All four classes share the gdal_opts base (a named list) and differ only by channel:

Rendering

A gdal_opts value is rendered with as_gdal_args() (CLI token vector for gdalraster::gdal_alg() / gdalraster::gdal_run()), as_config_option() (a NAME = VALUE character vector for gdalraster::set_config_option(), config/VSI only), or gdal_render() (a copy-pasteable shell snippet).