Learn R Programming

RSurvey (version 0.7-3)

ManagePolygons: Manage Polygons

Description

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

Usage

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

Arguments

polys
list; its components are objects of 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 GUI parent window.

Value

  • Queries and sets the polys component of Data; includes attributes of polys (data.poly and crop.poly), see SetPolygonLimits.

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