Learn R Programming

RSurvey (version 0.6-0)

ManagePolygons: Manage Polygons

Description

A GUI for managing and manipulating polygons that is based on the gpclib package.

Usage

ManagePolygons(ply = NULL, encoding = getOption("encoding"), 
               parent = NULL)

Arguments

ply
list; its components are objects of class gpc.poly-class.
encoding
character; encoding to be assumed for input strings. If the value is "latin1" or "UTF-8" it is used to mark character strings as known to be in Latin-1 or UTF-8: it is not used to re-encode the input.
parent
tkwin; the parent window (optional).

Value

  • Queries and sets the ply (see Arguments), poly.data, and poly.crop (see SetPolygonLimits) components of Data.

Details

The text file representation of a polygon is of the following format: x1 y1 x2 y2 ... x1 y1 x2 y2 ... The hole flag is either 1 to indicate a hole, or 0 for a regular contour. See read.polyfile within the gpclib package for details.

See Also

polyfile, union, setdiff, intersect

Examples

Run this code
ManagePolygons()

Run the code above in your browser using DataLab