SpatialPolygons
or SpatialPolygonsDataFrame
from
lists of Polygons
objects and data.frame
sPolygon(coords, hole=as.logical(NA))
Polygons(srl, ID)
SpatialPolygons(Srl, pO, proj4string=CRS(as.character(NA)))
SpatialPolygonsDataFrame(Sr, data, match.ID = TRUE)
getSpatialPolygonsLabelPoints(SP)
data.frame
; the number of rows in data
should equal the number of Polygons-class objects in Sr
data
with Polygons IDs to matchPolygon
returns an object of class Polygon
;
Polygons
returns an object of class Polygons
;
SpatialPolygons
returns object of class SpatialPolygons
;
SpatialPolygonsDataFrame
returns object of class SpatialPolygonsDataFrame
getSpatialPolygonsLabelPoints
returns an object of class
SpatialPoints
with label points.Polygon
, if the hole argument is not given, the status of the polygon as a hole or an island will be taken from the ring direction, with clockwise meaning island, and counter-clockwise meaning hole. In Polygons
, if all of the member Polygon objects are holes, the largest by area will be converted to island status. Until 2010-04-17, version 0.9-61, the area of this converted object was erroneously left at its hole value of zero. Thanks to Patrick Giraudoux for spotting the bug. The class definitions used for polygons in createSPComment
to add such comments to each Polygons member of
the polygons slot of this SpatialPolygons object. Exterior rings are coded
zero, while interior rings are coded with the 1-based index of the
exterior ring to which they belong. SpatialPolygons objects created by reading using readOGR
from