Render a gdal_opts() object to a copy-pasteable, multi-line shell snippet with one
flag/value pair per line and the appropriate line-continuation for the target shell. Only the
option flags (and the leading --input-format/--output-format when the driver is known) are
rendered; the base gdal invocation and datasets are not included.
Usage
gdal_render(x, shell = c("bash", "sh", "pwsh", "cmd"))Arguments
- x
A
gdal_opts()object.- shell
Target shell dialect controlling quoting and continuation:
"bash"/"sh"(\\, single quotes),"pwsh"(`, single quotes), or"cmd"(^, double quotes).
Examples
gdal_render(gdal_creation_opts(COMPRESSION = "ZSTD", driver = "Parquet"), shell = "bash")
#> [1] "--output-format 'Parquet' \\\n--layer-creation-option 'COMPRESSION=ZSTD'"