"Polygons" of the
"owin" objects of the
"gpc.poly" class of
the "Polygon"
to "gpc.poly". Note that conversions from and to
the "owin" class are also available as functions
owin2gpc and
gpc2owin in package
"SpatialPolygons"
class are included in the xylist methods break
down (convert) polygons from these classes to their core
feature, a list of vertex coordinates.xylist(object, ...) ## S3 method for class 'owin':
xylist(object, ...)
## S3 method for class 'gpc.poly':
xylist(object, ...)
## S3 method for class 'SpatialPolygons':
xylist(object, ...)
## S3 method for class 'Polygons':
xylist(object, ...)
## S3 method for class 'Polygon':
xylist(object, ...)
## S3 method for class 'default':
xylist(object, ...)
xylist to a polygon object, one gets a
simple list, where each component (polygon) is a list of
"x" and "y" coordinates, which give the
coordinates of the vertices of the polygon following
"owin" convention (anticlockwise
order without repeating any vertex). Additional elements
like "area" and "hole" in each component
are retained. The (somehow useless) default
xylist-method does not perform any transformation
but only checks that the polygons are not closed (first
vertex not repeated).xylist."gpc.poly". The
coerce-methods defined here produce vertices
ordered according to the