parse_osm: Parse an OSM/OSH XML

Description Usage Arguments Methods (by class) Details

Description

Extracts and parses information from and OSM/OSH XMLInternalDocument to initiate oshElement or metaList.

Usage

1
2
3
4
5
6
7
8
9
parse_osm(osm, object = NULL, tags = FALSE)

## S4 method for signature 'XMLInternalDocument,oshElement,logical'
parse_osm(osm,
  object = nodeList(), tags = FALSE)

## S4 method for signature 'XMLInternalDocument,metaList,ANY'
parse_osm(osm,
  object = metaList())

Arguments

osm

An OSM/OSH XMLInternalDocument object as given by xmlParse.

object

The object to be initiate by the function, e.g. nodeList.

tags

A logical argument to determine if tags should be parsed. Default to FALSE.

Methods (by class)

Details

This function is used by as_oshex() to parse an OSM/OSH XMLInternalDocument object in order to initiate an oshex object.

Settitn tags = TRUE parse and store isnformation from tags, node references (for wayList), and member objects (for relationList).


dof1985/OSHEX documentation built on May 28, 2019, 3:36 p.m.