data_citation: Layer Metadata

Description Usage Arguments Value Examples

View source: R/metadata.R

Description

formatted metadata attributes of a given vicmap layer (vicmap_query(layer)). Metadata is retrieved from the Vicmap catalogue. data_citation() prints a BibTex style citation for a given record; similar to base::citation(). data_dictionary() returns a table with names, types and descriptions of the data within the selected layer (see details). get_metdata() returns a list with three elements, containing metadata, the data dictionary and the url of the metadata for the record.

Usage

1
2
3
4
5
data_citation(x = NULL, anzlicId = NULL)

data_dictionary(x = NULL, anzlicId = NULL)

get_metadata(x = NULL, anzlicId = NULL)

Arguments

x

Object of class vicmap_promise (likely passed from vicmap_query())

anzlicId

character: ID of data (useful if data is not available through WFS)

Value

citation, data.frame or list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
try(
data_citation(vicmap_query(layer = "datavic:VMHYDRO_WATERCOURSE_DRAIN"))
)


try(
data_dictionary(vicmap_query(layer = "datavic:VMHYDRO_WATERCOURSE_DRAIN"))
)


try(
get_metadata(vicmap_query(layer = "datavic:VMHYDRO_WATERCOURSE_DRAIN"))
)

VicmapR documentation built on Nov. 10, 2021, 9:08 a.m.