Description Usage Arguments Details Value
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.
1 | read_big_osm(file, way_keys = NULL, relation_keys = NULL)
|
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. |
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.
An osmar
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.