Returns a data frame of spatial drivers supported by the current backend. For the DuckDB reader, this includes all GDAL-supported formats.
Arguments
- verbosity
Character or NULL. Controls message output for this function call.
"quiet": Suppress all informational messages."info": Show standard progress and status messages."debug": Show additional diagnostic messages for troubleshooting.
If NULL (the default), uses the global
sx.verbosityoption. Seesx_options()for persistent configuration.
Value
A data frame with columns:
short_name: Driver short name (e.g., "GPKG")long_name: Descriptive name (e.g., "GeoPackage")can_read: Logical. Whether the driver supports reading.can_write: Logical. Whether the driver supports writing.can_create: Logical. Whether the driver supports creating new files.
Examples
# \donttest{
# List all supported drivers
drivers <- sx_drivers()
head(drivers)
#> short_name long_name can_create can_copy can_open
#> 1 ESRI Shapefile ESRI Shapefile TRUE FALSE TRUE
#> 2 MapInfo File MapInfo File TRUE FALSE TRUE
#> 3 UK .NTF UK .NTF FALSE FALSE TRUE
#> 4 LVBAG Kadaster LV BAG Extract 2.0 FALSE FALSE TRUE
#> 5 S57 IHO S-57 (ENC) TRUE FALSE TRUE
#> 6 DGN Microstation DGN TRUE FALSE TRUE
#> help_url can_read can_write
#> 1 https://gdal.org/drivers/vector/shapefile.html TRUE TRUE
#> 2 https://gdal.org/drivers/vector/mitab.html TRUE TRUE
#> 3 https://gdal.org/drivers/vector/ntf.html TRUE FALSE
#> 4 https://gdal.org/drivers/vector/lvbag.html TRUE FALSE
#> 5 https://gdal.org/drivers/vector/s57.html TRUE TRUE
#> 6 https://gdal.org/drivers/vector/dgn.html TRUE TRUE
# Check for specific driver
"GPKG" %in% drivers$short_name
#> [1] TRUE
# }
