Extracts the archive to a temporary directory and reads each KML layer with
sf::read_sf() after sf::st_layers(). Multiple KML files or multiple
layers yield one row per layer; layer_name is simplified when there is only
one layer in one file.
read_kmz(path, quiet = TRUE, ...)Path to a .kmz file.
Passed to sf::read_sf().
Additional arguments passed to sf::read_sf().
A tibble with the same columns as read_gdb(). Here fpath is the
path to the original .kmz (not the temporary .kml), and file_type is
typically "kmz". Metadata columns still come from sf::st_layers() on the
extracted KML file used for reading.
if (FALSE) { # \dontrun{
read_kmz("path/to/data.kmz")
} # }