as.SpatialPolygons.PolygonsList: Making SpatialPolygons objects

Description Usage Arguments Value Author(s) Examples

View source: R/SpatialPolygons-methods.R

Description

This function is used in making SpatialPolygons objects from other formats.

Usage

1

Arguments

Srl

A list of Polygons objects

proj4string

Object of class "CRS"; holding a valid proj4 string

Value

The functions return a SpatialPolygons object

Author(s)

Roger Bivand

Examples

1
2
3
4
grd <- GridTopology(c(1,1), c(1,1), c(10,10))
polys <- as.SpatialPolygons.GridTopology(grd)
plot(polys)
text(coordinates(polys), labels=sapply(slot(polys, "polygons"), function(i) slot(i, "ID")), cex=0.6)

sp documentation built on Jan. 13, 2021, 12:09 p.m.