Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

SpatialMetadata

A class for spatial metadata


Description

Slots

xml:

object of class "XMLInternalDocument"; a metadata slot

field.names:

object of class "character"; corresponding metadata column names

palette:

object of class "sp.palette"; contains legend names and colors

sp:

object of class "Spatial"; bounding box and projection system of the input object

Methods

summary

signature(obj = "SpatialMetadata"): summarize object

GetPalette

signature(obj = "SpatialMetadata"): get only the color slot

GetNames

signature(obj = "SpatialMetadata"): get metadata field names

Author(s)

Tomislav Hengl and Michael Blaschek

See Also

Examples

## Not run: 
data(eberg)
library(sp)
coordinates(eberg) <- ~X+Y
proj4string(eberg) <- CRS("+init=epsg:31467")
names(eberg)
# add metadata:
eberg.md <- spMetadata(eberg, xml.file=system.file("eberg.xml", package="plotKML"), 
    Target_variable="SNDMHT_A")
p <- GetPalette(eberg.md)
str(p)
x <- summary(eberg.md)
str(x)

## End(Not run)

plotKML

Visualization of Spatial and Spatio-Temporal Objects in Google Earth

v0.8-1
GPL
Authors
Tomislav Hengl [cre, aut], Andrea Gilardi [ctb], Pierre Roudier [ctb], Dylan Beaudette [ctb], Edzer Pebesma [ctb], Michael Blaschek [ctb]
Initial release
2021-04-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.