realtime.service: create summary json for an individual storm item

Description Usage Arguments Value Examples

View source: R/realtime.service.R

Description

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

Usage

1
realtime.service(serviceEndpoint, attribute = NULL)

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
serviceEndpoint  <-	system.file('extdata', "GOM_erosion_hazards_metadata.xml", package = 'hazardItems')
attribute	<-	'PCOL'
summary	<-	realtime.service(serviceEndpoint,attribute)
print(summary)

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