historical.service: create summary json for an individual historical item

Description Usage Arguments Value Examples

View source: R/historical.service.R

Description

This service parses the metadata record and creates a summary specific to the HISTORICAL theme, with subtype being defined by the attribute name.

Usage

1
historical.service(serviceEndpoint, attribute)

Arguments

serviceEndpoint

valid xml, either local or a url

attribute

an attribute to use form the shapefile corresponding to serviceEndpoint

Value

Serialized JSON for summary

Examples

1
2
3
4
5
6
7
8
serviceEndpoint  <-	system.file('extdata',
"NewJerseyS_shorelines.shp.xml", package = 'hazardItems')
attribute	<-	'date'
summary	<-	historical.service(serviceEndpoint,attribute)
print(summary)
sink('output.json')
cat(summary)
sink()

USGS-R/hazardItems documentation built on Aug. 15, 2020, 11:28 a.m.