ManagePolygons: GUI: Polygon Manager

Description Usage Arguments Details Value Author(s) See Also Examples

Description

A graphical user interface (GUI) for managing and manipulating polygons that is based on the rgeos package.

Usage

1
2
ManagePolygons(polys = NULL, poly.data = NULL, poly.crop = NULL,
  crs = sp::CRS(as.character(NA)), parent = NULL)

Arguments

polys

list. A list of polygons, components are objects of class gpc.poly.

poly.data

character. Name of the polygon that defines the data boundary limits.

poly.crop

character. Name of the polygon that defines the crop region for interpolated data.

crs

CRS. Default coordinate reference system

parent

tkwin. GUI parent window

Details

The text file representation of a polygon is of the following format:

<number of contours>
<number of points in first contour>
<hole flag>
x1 y1
x2 y2
...
<number of points in second contour>
<hole flag>
x1 y1
x2 y2
...

The hole flag is either 1 to indicate a hole, or 0 for a regular contour. See the read.polyfile function for details.

Value

Returns an object of class list with components polys, poly.data, poly.crop, and crs (see ‘Arguments’ section).

Author(s)

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center

See Also

polyfile, gUnion, SetPolygons

Examples

1
2
3
4
## Not run: 
  ManagePolygons()

## End(Not run)

RSurvey documentation built on May 2, 2019, 3:28 p.m.