Description Usage Arguments Details Author(s) See Also Examples
Writes object of class "SpatialLines*"
to KML with a possibility to parse attribute variables using several aesthetics arguments.
1 2 3 |
obj |
object of class |
subfolder.name |
character; optional subfolder name |
extrude |
logical; specifies whether to connect the LinearRing to the ground |
z.scale |
vertical exaggeration |
metadata |
(optional) specify the metadata object |
html.table |
optional description block (html) for each GPS point (vertices) |
TimeSpan.begin |
(optional) beginning of the referent time period |
TimeSpan.end |
(optional) end of the referent time period |
... |
additional style arguments (see |
Only colour and width (aesthetics) are recommended when visualizing SpatialLines*
objects.
TimeSpan.begin
and TimeSpan.end
are optional TimeStamp vectors in the format:
yyyy-mm-ddThh:mm:sszzzzzz
Use the same time values for both TimeSpan.begin
and TimeSpan.end
if the measurements refer to a single moment in time. TimeSpan.begin
and TimeSpan.end
can be either a single value or a vector of values.
Pierre Roudier, Tomislav Hengl and Dylan Beaudette
kml-methods
, kml_open
, kml_layer.SpatialPolygons
, plotKML-method
1 2 3 4 5 6 7 8 9 | library(rgdal)
library(sp)
data(eberg_contours)
data(SAGA_pal)
names(eberg_contours)
# KML plot with elevations used as 'colour' argument:
kml.file = paste0(tempdir(), "/eberg_contours.kml")
kml(eberg_contours, file.name = kml.file,
colour_scale = SAGA_pal[[1]], colour = Z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.