ManagePolygons: GUI: Polygon Manager
Description
A graphical user interface (GUI) for managing and manipulating polygons
that is based on the rgeos package.
Usage
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
Value
Returns an object of class list with components
polys
, poly.data
, poly.crop
, and crs
(see ‘Arguments’ section).
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.
Examples
Run this code# NOT RUN {
ManagePolygons()
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab