Skip to contents

Accessors for a driver's creation options, parsed from both the dataset-level (DMD_CREATIONOPTIONLIST, --co) and layer-level (DS_LAYER_CREATIONOPTIONLIST, --lco) metadata. Use sub_type to restrict to one level.

  • gdal_vector_driver_creation_opts(): the creation-option table for driver.

  • gdal_vector_driver_creation_opts_defaults(): name to default (all, or one when opt_name given).

  • gdal_vector_driver_creation_opts_values(): name to allowed values (only constrained options).

  • gdal_vector_driver_creation_opts_types(): name to data_type.

Usage

gdal_vector_driver_creation_opts(driver, sub_type = NULL)

gdal_vector_driver_creation_opts_defaults(
  driver,
  opt_name = NULL,
  sub_type = NULL
)

gdal_vector_driver_creation_opts_values(
  driver,
  opt_name = NULL,
  sub_type = NULL
)

gdal_vector_driver_creation_opts_types(driver, sub_type = NULL)

Arguments

driver

Character scalar GDAL driver short name.

sub_type

Optional creation level to restrict to: "dataset" or "layer".

opt_name

Optional single option name. When supplied, returns the value for that option only; otherwise returns the full named result.

Value

A tibble::tibble(), named character vector, or named list (see gdal_vector_driver_opts()).

Examples

gdal_vector_driver_creation_opts("Parquet", sub_type = "layer")
#> # A tibble: 0 × 9
#> # ℹ 9 variables: driver <chr>, type <chr>, sub_type <chr>, name <chr>,
#> #   description <chr>, scope <chr>, default <chr>, values <list>,
#> #   data_type <chr>
gdal_vector_driver_creation_opts_values("GPKG", sub_type = "layer")
#> $ASPATIAL_VARIANT
#> [1] "GPKG_ATTRIBUTES" "NOT_REGISTERED" 
#> 
#> $DATETIME_PRECISION
#> [1] "AUTO"        "MILLISECOND" "SECOND"      "MINUTE"     
#> 
#> $GEOMETRY_NULLABLE
#> [1] "YES" "NO" 
#> 
#> $OVERWRITE
#> [1] "YES" "NO" 
#> 
#> $PRECISION
#> [1] "YES" "NO" 
#> 
#> $SPATIAL_INDEX
#> [1] "YES" "NO" 
#> 
#> $TRUNCATE_FIELDS
#> [1] "YES" "NO" 
#>