read_big_osm: Read large OSM XML files

Description Usage Arguments Details Value

View source: R/parse.R

Description

osmar is an R package for reading OpenStreetMap XML data exports. It relies on reading an entire file into an R string and then parsing with the XML package. This method breaks on particularly large files (generally those in excess of 400 MB). read_big_osm() instead relies on direct queries of an XML file via the xml2 package.

Usage

1
read_big_osm(file, way_keys = NULL, relation_keys = NULL)

Arguments

file

Path to the file

way_keys

Character. Filter Ways extracted from XML to those that contain at least one of these key labels in their tags.

relation_keys

relation_keys Filter Relations extracted from XML to those that contain at least one of these key labels in their tags.

Details

You may further subset the OSM objects to import by specifying Way or Relation key values that must be present in those elements' tags in order for them and their associated Nodes to be imported.

Value

An osmar object


dSHARP-CMU/bigosm documentation built on Sept. 11, 2019, 2:30 p.m.