as_osmar_sp: Convert sp object to an osmar object

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
2
## S3 method for class 'Spatial'
as_osmar_bbox(obj, ...)

Arguments

obj

A Spatial object

...

Ignored

Value

A bbox object

See Also

Other as_osmar_bbox: as_osmar_bbox, corner_bbox

Examples

1
2
3
4
  data("muc", package = "osmar2")
  muc_points <- as_sp(muc, "points")
  bbox(muc_points)           # sp::bbox object
  as_osmar_bbox(muc_points)  # osmar::bbox object

gergness/osmar2 documentation built on May 17, 2019, 2:10 a.m.