SpatialPolygons-class

0th

Percentile

Class "SpatialPolygons"

class to hold polygon topology (without attributes)

Keywords
classes
Note

rbind calls the function SpatialPolygons, where it is checked that all IDs are unique. If rbind-ing SpatialPolygons without unique IDs, it is possible to set the argument makeUniqueIDs = TRUE, although it is preferred to change these explicitly with spChFIDs.

Objects from the Class

Objects can be created by calls to the function SpatialPolygons

Extends

Class "Spatial", directly.

See Also

SpatialPolygons

Aliases
  • SpatialPolygons-class
  • [,SpatialPolygons-method
  • as.data.frame.SpatialPolygons
  • as.SpatialPolygonsDataFrame.SpatialPolygons
  • coerce,SpatialPolygons,SpatialPolygonsDataFrame-method
  • plot,SpatialPolygons,missing-method
  • summary,SpatialPolygons-method
  • rbind.SpatialPolygons
  • coerce,Polygons,Lines-method
  • coerce,SpatialPolygons,SpatialLines-method
  • row.names.SpatialPolygons
Examples
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)
text(coordinates(polys), labels=row.names(polys))
Documentation reproduced from package sp, version 0.9-92, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.