Validate the list of creation options that are handled by a driver
Source:R/RcppExports.R
validateCreationOptions.Rd
validateCreationOptions()
is a helper function primarily used by GDAL's
Create() and CreateCopy() to validate that the passed-in list of creation
options is compatible with the GDAL_DMD_CREATIONOPTIONLIST metadata item
defined by some drivers. If the GDAL_DMD_CREATIONOPTIONLIST metadata item
is not defined, this function will return TRUE
. Otherwise it will check
that the keys and values in the list of creation options are compatible
with the capabilities declared by the GDAL_DMD_CREATIONOPTIONLIST metadata
item. In case of incompatibility a message will be emitted and FALSE
will
be returned. Wrapper of GDALValidateCreationOptions()
in the GDAL API.
Value
A logical value, TRUE
if the given creation options are
compatible with the capabilities declared by the GDAL_DMD_CREATIONOPTIONLIST
metadata item for the specified format driver (or if the
GDAL_DMD_CREATIONOPTIONLIST metadata item is not defined for this driver),
otherwise FALSE
.
Examples
validateCreationOptions("GTiff", c("COMPRESS=LZW", "TILED=YES"))
#> [1] TRUE