| as_osmar {osmar} | R Documentation |
Convert a given OSM-XML object (as parsed by
xmlParse) to an osmar object.
as_osmar(xml)
xml |
An OSM-XML object |
A list (with class attribute osmar) with three
elements:
nodesA list with two data frames containing the attributes and tags of the nodes.
waysA list with three data frames containing the attributes, tags, and references of the ways.
relationsA list with three data frames containing the attributes, tags, and references of the relations.
file <- system.file("extdata", "kaufstr.xml", package = "osmar")
raw <- readLines(file)
kaufstr <- as_osmar(xmlParse(raw))