Learn R Programming

osmar (version 1.1-7)

node: Element descriptors

Description

For getting OSM data and finding elements in an osmar object one needs to describe the data---here we provide a simple description language.

Usage

node(object)
way(object)
relation(object)
"node" (object)
"way" (object)
"relation" (object)
attrs(condition)
tags(condition)
refs(condition)
"relation" (object)
"relation" (object)
"relation" (object)

Arguments

object
The descriptor; see details
condition
Condition to describe the object

See Also

bbox

Examples

Run this code
## Description by ID (*.default):
  node(1)
way(1)
relation(1)
## Description by condition (*.condition):
  node(tags(v == "Marienplatz"))
## Description by condition (*.condition):
  way(attrs(id == 17458))

Run the code above in your browser using DataLab