osm_descriptors: Element descriptors

Description Usage Arguments See Also Examples

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
node(object)

way(object)

relation(object)

## Default S3 method:
node(object)

## Default S3 method:
way(object)

## Default S3 method:
relation(object)

attrs(condition)

tags(condition)

refs(condition)

## S3 method for class 'condition'
relation(object)

## S3 method for class 'condition'
relation(object)

## S3 method for class 'condition'
relation(object)

Arguments

object

The descriptor; see details

condition

Condition to describe the object

See Also

bbox

Examples

1
2
3
4
5
6
7
8
## 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))

osmar documentation built on May 2, 2019, 6:15 p.m.

Related to osm_descriptors in osmar...