Learn R Programming

plotKML (version 0.8-3)

kml_metadata-methods: Add metadata table to the active layer

Description

Adds a selection of metadata to the description box of an active layer.

Usage

# S4 method for SpatialMetadata
kml_metadata(obj, cwidth = 150, twidth = 500, asText = FALSE)

Arguments

obj

object of class "SpatialMetadata"

cwidth

html column width for the field names

twidth

html total table width

asText

logical; return the output as XML or characters

Details

The kml_metadata function, by default, prints out only a number of selected metadata fields:

  1. "Citation_title",

  2. "Abstract",

  3. "Object_Count",

  4. "Beginning_Date",

  5. "Ending_Date",

  6. "Data_Order_URL",

  7. "Other_Citation_Details",

  8. "Citation_URL",

  9. "Data_Set_Credit",

  10. "Data_Distributing_Organization",

  11. "Format_Information_Content",

  12. "Native_Data_Set_Environment"

See data(mdnames) for a complete list of metadata fields.

See Also

spMetadata