Learn R Programming

osmar (version 1.1-7)

as_osmar_bbox.Spatial: Convert sp object to an osmar object

Description

Functions to convert a given sp object to osmar infrastructure and objects.

Usage

"as_osmar_bbox" (obj, ...)

Arguments

obj
A Spatial object
...
Ignored

Value

A bbox object

See Also

Other as_osmar_bbox: as_osmar_bbox, center_bbox, corner_bbox

Examples

Run this code
data("muc", package = "osmar")
  muc_points <- as_sp(muc, "points")
  bbox(muc_points)           # sp::bbox object
  as_osmar_bbox(muc_points)  # osmar::bbox object

Run the code above in your browser using DataLab