ohsome_extract_elementsFullHistory {ohsome} | R Documentation |
Extract OSM elements' full history
Description
Creates an ohsome_query
object for the extraction of OSM elements' full
history
Usage
ohsome_extract_elementsFullHistory(
boundary = NULL,
geometryType = c("centroid", "bbox", "geometry"),
time = NULL,
properties = NULL,
clipGeometry = TRUE,
...
)
ohsome_elementsFullHistory_bbox(boundary = NULL, ...)
ohsome_elementsFullHistory_centroid(boundary = NULL, ...)
ohsome_elementsFullHistory_geometry(boundary = NULL, ...)
Arguments
boundary |
Bounding geometries specified by WGS84 coordinates in the
order
|
geometryType |
character; type of geometry to be extracted:
Caveat: Node elements are omitted from results in queries for bounding boxes. |
time |
character; |
properties |
character; properties to be extracted with the features:
Multiple values can be provided as comma-separated character or as
character vector. This defaults to |
clipGeometry |
logical; specifies whether the returned geometries should be clipped to the query’s spatial boundary |
... |
Parameters of the request to the ohsome API endpoint. |
Details
ohsome_extract_elementsFullHistory()
creates an ohsome_query
object for OSM
element full history extraction. ohsome_elementsFullHistory_bbox()
,
ohsome_elementsFullHistory_centroid()
and
ohsome_elementsFullHistory_geometry()
are wrapper functions for specific
elementsFullHistory extraction endpoints. Boundary objects are passed via
set_boundary()
into ohsome_boundary()
.
Value
An ohsome_query
object. The object can be sent to the ohsome API
with ohsome_post()
. It consists of the following elements:
-
url
: The URL of the endpoint. -
encode
: The way the information is encoded and then posted to the ohsome API. Set as"form"
. -
body
: The parameters of the query such asformat
,filter
orbpolys
.
See Also
ohsome API Endpoints – Elements Full History Extraction
Examples
# Extract full history of building geometries around Heidelberg main station:
ohsome_elementsFullHistory_geometry(
boundary = "8.67542,49.40347,1000",
time = "2012,2022",
filter = "building=* and geometry:polygon",
clipGeometry = FALSE
)