| as_osmar_bbox.Spatial {osmar} | R Documentation |
Functions to convert a given sp object
to osmar infrastructure and objects.
## S3 method for class 'Spatial' as_osmar_bbox(obj, ...)
obj |
A |
... |
Ignored |
A bbox object
Other as_osmar_bbox: as_osmar_bbox,
center_bbox, corner_bbox
data("muc", package = "osmar")
muc_points <- as_sp(muc, "points")
bbox(muc_points) # sp::bbox object
as_osmar_bbox(muc_points) # osmar::bbox object