layer.SpatialLines: Writes spatial lines to KML

kml_layer.SpatialLinesR Documentation

Writes spatial lines to KML

Description

Writes object of class "SpatialLines*" to KML with a possibility to parse attribute variables using several aesthetics arguments.

Usage

kml_layer.SpatialLines(obj, subfolder.name = paste(class(obj)), 
  extrude = FALSE, z.scale = 1, metadata = NULL, 
  html.table = NULL, TimeSpan.begin = "", TimeSpan.end = "", ...)

Arguments

obj

object of class "SpatialLines*"

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 aesthetics)

Details

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.

Author(s)

Pierre Roudier, Tomislav Hengl and Dylan Beaudette

See Also

kml-methods, kml_open, kml_layer.SpatialPolygons, plotKML-method

Examples


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)


Envirometrix/plotKML documentation built on June 13, 2022, 11:21 p.m.