Description Usage Arguments Details Value Author(s)
as.shp
coerces lists of polygons to adhere to the
shp
representation.
1 | as.shp(x)
|
x |
object to coerce |
Objects of the class "shp"
are lists of shapes. Each shape
comprises of polygons and has an identifier and a bounding box.
The as.shp
method coerces various representations of shape sets
into "shp"
objects.
Currently the only supported representation to convert from is a list
of "x"
, "y"
pairs, e.g.: list(list(x=..., y=...),
list(x=..., y=...), ...)
where each element of the list defines a
shape. The shapes will be assigned sequential identifiers starting at
1.
Object of the class "shp"
.
Simon Urbanek
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.