readISO19139 is a function to read a ISO 19139 from a file or url into an object in the geometa model.

readISO19139(file, url, raw)

Arguments

file

a valid file path, as object of class character

url

a valid URL, as object of class character

raw

indicates if the function should return the raw XML. By default this is set to FALSE and the function will try to map the xml data to the geometa data model.

Value

a geometa object inheriting ISOAbstractObject

Author

Emmanuel Blondel, emmanuel.blondel1@gmail.com

Examples

# \donttest{
  mdfile <- system.file("extdata/examples", "metadata.xml", package = "geometa")
  md <- readISO19139(mdfile)
#> Error in super$initialize(xml = xml, id = private$xmlElement, value = value,     description = description, addCodeSpaceAttr = FALSE): No ISO codelist for identifier 'MD_CharacterSetCode'
# }