Construct a gdal_config_opts() object for the ESRI Shapefile driver. These are global GDAL
configuration options applied to the process (via gdalraster::set_config_option() /
--config). Only options you supply are emitted.
Usage
shp_config_opts(
shape_rewind_on_write = NULL,
shape_restore_shx = NULL,
shape_2gb_limit = NULL,
shape_encoding = NULL,
...,
.set_defaults = FALSE
)Arguments
- shape_rewind_on_write
Value for
SHAPE_REWIND_ON_WRITE(logical ->"YES"/"NO"); whether to correct the winding order of exterior/interior rings on write. Since GDAL 3.7 the default for Polygon/MultiPolygon is"NO".- shape_restore_shx
Value for
SHAPE_RESTORE_SHX(logical ->"YES"/"NO"); restore a missing/broken.shxfrom the.shpon open. GDAL default"NO".- shape_2gb_limit
Value for
SHAPE_2GB_LIMIT(logical ->"YES"/"NO"); strictly enforce the 2 GB.shp/.dbfsize limit when updating.- shape_encoding
Value for
SHAPE_ENCODING(override DBF encoding with anyCPLRecode()encoding;""disables recoding).- ...
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 ESRI Shapefile driver.