kml_read: Read a KML file.

Description Usage Arguments Value See Also Examples

Description

Read a KML file.

Usage

1

Arguments

x

A string, a connection, or a raw vector. All inputs accepted by read_xml are also accepted, as long as they are valid KML. This means that URLs and local compressed files, such as .zip files, are also supported.

If the source is a local file with a name ending in .kmz, kml_read will treat it as a zipped KML file and will try to read its first file, as listed by unzip.

If the source is a link to Google My Maps, kml_read will try to download the most recent version of the map and will then treat it as a .kmz file.

...

Arguments passed to read_xml, such as encoding or base_url. See read_xml for details.

Value

A nodeset.

See Also

Google Developers. KML Reference. https://developers.google.com/kml/documentation/kmlreference

Examples

1
2
3
4
# demo data: U.S. Civil War map
# see ?states for details
f <- system.file("extdata", "states.kml.zip", package = "tidykml")
kml_read(f)

briatte/tidykml documentation built on May 13, 2019, 7:43 a.m.