as.shp {fastshp} | R Documentation |
as.shp
coerces lists of polygons to adhere to the
shp
representation.
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