Convert a named matrix or a named or unnamed vector or data.frame to a string
Source:R/getbb.R
bbox_to_string.Rd
This function converts a bounding box into a string for use in web apis
Arguments
- bbox
bounding box as character, matrix, vector or a data.frame with
osm_type
andosm_id
columns. If character, the bbox will be found (geocoded) and extracted with getbb. Unnamed vectors will be sorted appropriately and must merely be in the order (x, y, x, y).
Value
A character string representing min x, min y, max x, and max y
bounds. For example: "15.3152361,76.4406446,15.3552361,76.4806446"
is
the bounding box for Hampi, India. For data.frames with OSM objects, a
character string representing a set of OSM objects in overpass query
language. For example: "relation(id:11747082)"
represents the area of
the Catalan Countries. A set of objects can also be represented for multirow
data.frames (e.g. "relation(id:11747082,307833); way(id:22422490)"
).
See also
Other queries:
add_osm_feature()
,
add_osm_features()
,
getbb()
,
opq()
,
opq_around()
,
opq_csv()
,
opq_enclosing()
,
opq_osm_id()
,
opq_string()
,
overpass_status()