Description Usage Arguments Details Value Examples
Convert an osmar object to a sp object.
| 1 2 | 
| obj | An  | 
| what | A string describing the sp-object; see Details section | 
| crs | A valid  | 
| simplify | Should the result list be simplified to one element if possible? | 
Depending on the strings given in what the
osmar object will be converted into in a list of
objects given by the sp-package:
what = "points"the object will be converted
in a SpatialPointsDataFrame. The data slot is
filled with the attrs slot of obj$nodes.
what = "lines"the object will be converted in
a SpatialLinesDataFrame. It is build with all
possible elements which are in obj$ways
obj$relations. The data slot is filled with elements
of both.
what = "polygons"the object will be converted
in a SpatialPolygonsDataFrame. It consists of
elements which are in obj$ways slot.
Every conversion needs at least a non-empty
obj$nodes$attrs-slot because spatial information are stored
in there.
A list of one or more sp objects; see Details section.
| 1 2 3 4 5 6 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.