Skip to contents

Construct a gdal_open_opts() object for the FlatGeobuf driver. Only options you supply are emitted; values are validated against the driver's registered metadata.

Usage

fgb_open_opts(verify_buffers = NULL, ..., .set_defaults = FALSE)

Arguments

verify_buffers

Value for VERIFY_BUFFERS. Logical TRUE/FALSE (coerced to "YES"/ "NO") controlling whether flatbuffer integrity is verified on read. "YES" (the GDAL default) guards against corrupt data at a small performance cost; "NO" is faster but unsafe on malformed files. NULL (default) leaves it unset.

...

Additional NAME = value options 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 relevant gdal_vector_driver_*_opts_defaults()); user-supplied values always take precedence. Defaults to FALSE.

Value

A gdal_open_opts() object for the FlatGeobuf driver.

Examples

fgb_open_opts()
#> <gdal_open_opts/gdal_opts>
#>  Driver: FlatGeobuf
#>  No open options set.
fgb_open_opts(verify_buffers = FALSE)
#> <gdal_open_opts/gdal_opts>
#>  Driver: FlatGeobuf
#>  Open Options: VERIFY_BUFFERS=NO
#>  Command Line: --input-format 'FlatGeobuf' --open-option 'VERIFY_BUFFERS=NO'
fgb_open_opts(.set_defaults = TRUE)
#> <gdal_open_opts/gdal_opts>
#>  Driver: FlatGeobuf
#>  Open Options: VERIFY_BUFFERS=YES
#>  Command Line: --input-format 'FlatGeobuf' --open-option 'VERIFY_BUFFERS=YES'