Writes an object of class "STTDF"
to a KML file with a possibility to parse attribute variables using several aesthetics arguments.
kml_layer.STTDF(obj, id.name = names(obj@data)[which(names(obj@data)== "burst")],
dtime, extrude = FALSE,
start.icon = paste(get("home_url", envir = plotKML.opts),
"3Dballyellow.png", sep = ""),
end.icon = paste(get("home_url", envir = plotKML.opts),
"golfhole.png", sep = ""),
LabelScale = 0.8 * get("LabelScale", envir = plotKML.opts), z.scale = 1,
metadata = NULL, html.table = NULL, … )
space-time object of class "STTDF"
(spatio-temporal irregular data.frames trajectory)
trajectory ID column name
temporal support size (in seconds)
logical; extrude GPS vertices?
start icon name (3Dballyellow.png
)
destination icon name (golfhole.png
)
the default size of icons
vertical exaggeration
(optional) specify the metadata object
optional description block (html) for each GPS point (vertices)
other optional arguments
The dateTime is defined as yyyy-mm-ddThh:mm:sszzzzzz
, where T
is the separator between the date and the time, and the time zone is either Z
(for UTC) or zzzzzz
, which represents <U+00B1>hh:mm in relation to UTC. For more info on how Time Stamps work see https://developers.google.com/kml/documentation/kml_tut. If the time is measured at block support, then:
<TimeStamp><begin> </begin><end> </end></TimeStamp>
tags will be inserted. Temporal support for any spacetime class, if not specified by the user, is determined as a difference between the "time"
(indicating begin time) and "endTime"
slots.
Pebesma, E. (2012) Classes and Methods for Spatio-Temporal Data in R. Journal of Statistical Software. 51(7): 1-30.
spacetime package (https://CRAN.R-project.org/package=spacetime)