| read_kmz | R Documentation |
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 |
Path to a |
quiet |
Passed to |
... |
Additional arguments passed to |
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.
kmz <- system.file("extdata", "misc_example.kmz", package = "misc")
if (nzchar(kmz) && file.exists(kmz)) read_kmz(kmz)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.