Learn R Programming

rmapzen (version 0.4.4)

as_sp: Coerce a Mapzen response to an Spatial*DataFrame

Description

Coerces responses to SpatialPoints, SpatialLines, or SpatialPolygons data frames.

Usage

as_sp(geo, ...)

# S3 method for geo_list as_sp(geo, ...)

# S3 method for mapzen_vector_layer as_sp(geo, ..., geometry_type = NULL)

Arguments

geo

The object to be converted

...

not currently used

geometry_type

"point", "line", or "polygon" -- can be left NULL and only needs to be specified when an object contains multiple geometry types.