Construct a gdal_open_opts() object for the ESRI Shapefile driver.
Usage
shp_open_opts(
encoding = NULL,
dbf_date_last_update = NULL,
adjust_type = NULL,
adjust_geom_type = NULL,
auto_repack = NULL,
dbf_eof_char = NULL,
...,
.set_defaults = FALSE
)Arguments
- encoding
Value for
ENCODING(override DBF encoding with anyCPLRecode()encoding;""avoids recoding).- dbf_date_last_update
Value for
DBF_DATE_LAST_UPDATE(YYYY-MM-DD); modification date written in the DBF header. Defaults to the current date.- adjust_type
Value for
ADJUST_TYPE(logical ->"YES"/"NO"); read the whole.dbfto refine ambiguousReal/Integer/Integer64field types. GDAL default"NO".- adjust_geom_type
Value for
ADJUST_GEOM_TYPE. One ofNO/FIRST_SHAPE/ALL_SHAPES; how the layer geometry type (notably theMdimension) is determined. GDAL default"FIRST_SHAPE".- auto_repack
Value for
AUTO_REPACK(logical ->"YES"/"NO"); auto-repack the shapefile when needed. GDAL default"YES".- dbf_eof_char
Value for
DBF_EOF_CHAR(logical ->"YES"/"NO"); write the0x1Aend-of-file character in the.dbf. GDAL default"YES".- ...
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_open_opts() object for the ESRI Shapefile driver.