Learn R Programming

polyCub (version 0.4-2)

owin2gpc: Conversion from and to the "gpc.poly" Class

Description

Package polyCub implements converters between the classes "owin" of package spatstat and "gpc.poly" of package rgeos (originally from gpclib).

Usage

owin2gpc(object)

gpc2owin(object)

Arguments

object
an object of class "gpc.poly" or "owin", respectively.

Value

  • The converted polygon of class "gpc.poly" or "owin", respectively. If neither package rgeos nor gpclib are available, owin2gpc will just return the pts slot of the "gpc.poly" (no formal class) with a warning.

See Also

xylist Conversions of "gpc.poly" objects from and to the "SpatialPolygons" class of package sp are available in the rgeos package.