Learn R Programming

RSurvey (version 0.7-9)

ManagePolygons: Manage Polygons

Description

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

Usage

ManagePolygons(polys = NULL, poly.data = NULL, poly.crop = NULL,
               encoding = getOption("encoding"), parent = NULL)

Arguments

polys
list; its components are objects of gpc.poly-class.
poly.data
character; the name of the polygon that defines the data limits boundary.
poly.crop
character; the name of the polygon that defines the crop region for interpolated data.
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 GUI parent window.

Value

  • A list with components polys, poly.data, and poly.crop (see Arguments).

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 rgeos package for details.

See Also

polyfile, union, setdiff, intersect

Examples

Run this code
ManagePolygons()

Run the code above in your browser using DataLab