"xylist", which represents
polygons by their core feature only, a list of lists of vertex coordinates
(see the "Value" section below).
The generic function xylist can deal with the
following polygon classes:
"owin" from package spatstat
"gpc.poly" from package
rgeos (or gpclib)
"" from package sp
(as well as "" and
"")
The (somehow useless) default xylist-method
does not perform any transformation but only ensures that the polygons are
not closed (first vertex not repeated).
xylist(object, ...)# S3 method for owin
xylist(object, ...)
# S3 method for gpc.poly
xylist(object, ...)
# S3 method for SpatialPolygons
xylist(object, reverse = TRUE, ...)
# S3 method for Polygons
xylist(object, reverse = TRUE, ...)
# S3 method for Polygon
xylist(object, reverse = TRUE, ...)
# S3 method for default
xylist(object, ...)
TRUE) indicating if the vertex order of the
sp classes should be reversed to get the xylist/owin
convention.xylist to a polygon object, one gets a simple list,
where each component (polygon) is a list of "x" and "y"
coordinates. These represent vertex coordinates following spatstat's
"owin" convention (anticlockwise order without repeating any vertex).
The opposite vertex order can be retained for the sp-classes
by the non-default use with reverse=FALSE.Package overview:
xylist."gpc.poly".