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

Description Usage Arguments Value Examples

View source: R/vulnerability.service.R

Description

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

Usage

1
vulnerability.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
 9
10
## Not run: 
serviceEndpoint  <- paste0('https://marine.usgs.gov/coastalhazards/csw/?',
'service=CSW&request=GetRecordById&version=2.0.2&typeNames=fgdc:metadata',
'&id=urn:uuid:12d6c1ee-a9e6-11e3-99f6-0050569524e0&',
'outputSchema=http://www.opengis.net/cat/csw/csdgm&elementSetName=full')
attribute <- 'DHIGH'
summary <- vulnerability.service(serviceEndpoint,attribute)
print(summary)

## End(Not run)

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