Convert KML to Simple Features (sf) Object with Preserved Attributes
Source:R/load_kml_sf.R
load_kml_sf.Rd
This function reads a KML file and processes the specified columns to extract
feature identifiers and descriptive attributes, returning an sf
object
that retains the geometry and parsed attribute data.
Arguments
- kml_path
A character string specifying the path to the KML file. The path can be a local file or a URL, and zipped files are supported.
- ...
Additional arguments passed to
sf::read_sf()
for reading the KML file.- id_col
A character string indicating the column in the KML file that contains feature identifiers (default is "Name").
- details_col
A character string specifying the column that contains descriptive data to be parsed (default is "Description").