Lists all layers available in a spatial file (e.g., for GeoPackage, FileGDB, or PostGIS).
Arguments
- path
Character string. Path to the file (local, HTTP, or S3) to inspect.
- 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 layer information, typically including layer_name,
geometry_type, and feature_count.
Examples
# \donttest{
# Path to a multi-layer GPKG
gpkg_path <- system.file("spatial/countries.geojson", package = "sx") # Example
# sx_layers(gpkg_path)
# }
