Description Usage Arguments Methods (by class) Details Examples
Filter an oshex-class
based on temporal, tags and attributes expression Lists.
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 30 31 32 33 34 35 36 37 | osh_filter(object, conditions = NULL, union = FALSE, full.parse = TRUE)
## S4 method for signature
## 'oshex,listORmissing,logicalORmissing,logicalORmissing'
osh_filter(object,
conditions = NULL, union = FALSE, full.parse = TRUE)
## S4 method for signature
## 'oshElement,oshExListTag,logicalORmissing,logicalORmissing'
osh_filter(object,
conditions = NULL, union = FALSE, full.parse = TRUE)
## S4 method for signature
## 'oshElement,oshExListAttrs,logicalORmissing,logicalORmissing'
osh_filter(object,
conditions = NULL, union = FALSE, full.parse = TRUE)
## S4 method for signature
## 'oshElement,oshExListTemp,logicalORmissing,logicalORmissing'
osh_filter(object,
conditions = NULL, union = FALSE, full.parse = TRUE)
## S4 method for signature
## 'nodeList,oshExListGeo,logicalORmissing,logicalORmissing'
osh_filter(object,
conditions = NULL, union = FALSE, full.parse = TRUE)
## S4 method for signature
## 'oshElement,oshExListGeo,logicalORmissing,logicalORmissing'
osh_filter(object,
conditions = NULL, union = FALSE, full.parse = TRUE)
|
object |
An |
conditions |
One condition given as an |
union |
A logical to determine if the result is a union of all conditions (if TRUE) or their intersection (if FALSE). Defaults to FALSE. |
full.parse |
A logical to determine if filter should keep interrelated objects (See 'Details' below). Defaults to TRUE. |
object = oshex,conditions = listORmissing,union = logicalORmissing,full.parse = logicalORmissing
: Filter an oshex object.
object = oshElement,conditions = oshExListTag,union = logicalORmissing,full.parse = logicalORmissing
: Filter the tags slot of an oshElement object.
object = oshElement,conditions = oshExListAttrs,union = logicalORmissing,full.parse = logicalORmissing
: Filter the attrs slot of an oshElement object
object = oshElement,conditions = oshExListTemp,union = logicalORmissing,full.parse = logicalORmissing
: Filter the timestamp of an oshElement object
object = nodeList,conditions = oshExListGeo,union = logicalORmissing,full.parse = logicalORmissing
: Filters an osh nodeList based on a geographic query.
object = oshElement,conditions = oshExListGeo,union = logicalORmissing,full.parse = logicalORmissing
: Filters an oshElement object based on a geographic query.
Information in an oshex
object is split by type between nodes
, ways
, and relations
.
Nodes function both as independent objects (e.g. bus-stops) or as building blocks of a way (line or polygons).
In addition, individual objects play a role as members of a relation object. For example, bus-stops (nodes),
and bus-routes (ways) form together a public transport relation.
osh_filter
can account for these interrelated objects by setting full.parse = TRUE
.
1 2 3 4 | ## Not run:
highway <- osh_filter(object = osh, conditions = tag(c(k %eq% highway, v %eq% primary), union = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.