Learn R Programming

fetchR (version 2.1-1)

kml,Fetch-method: Write a Fetch object to a KML file

Description

Write a Fetch object to a KML file. Various aesthetics parameters can be set via colour, alpha, size, shape arguments.

Usage

# S4 method for Fetch
kml(obj,
  folder.name = normalizeFilename(deparse(substitute(obj, env =
  parent.frame()))),
  file.name = paste(normalizeFilename(deparse(substitute(obj, env =
  parent.frame()))), ".kml", sep = ""), overwrite = FALSE, ...)

Arguments

obj

a Fetch object

folder.name

character; folder name in the KML file

file.name

character; output KML file name

overwrite

logical; overwrite the existing file if one exists? Default FALSE

...

additional aesthetics arguments passed to kml_layer.SpatialLines